This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
Hi there,
I am trying to share a QR code I have generated using the social-share plugin. I have the image as base64.
If I use the .share() method then it adds it as a file to SMS (ios) but not on whatsApp.
If I use the .shareViaSMS() method I am unable to add the image, it sends the base64 string
If I use the shareViaWhatsApp() method it opens the IOS share popup and not the whatsApp contacts screen but does have the file available to send - This would be ok but iMessage is no longer an option in the share popup.
Also shareViaEmail() does not do anything.
Ideally I want to use the .share() method and let the user select the app to use from the popup but I need the image as an attachment on whatever app is selected.
My .share() function is.....
share() {
const user = this.store.selectForLocal('user');
const subject = 'Someone sent you a QR Code';
const message = user.firstname ' ' user.surname ' shared a QR code for ' this.qr.locationName;
const imageString = this.imageString this.qr.image;
this.socialSharing.share(message, subject, imageString, this.qr.URL)
.then(() => {
console.log('SHARED');
})
.catch(err => {
console.log(err);
});
}
Does anyone have this working on Ionic3?
Any help really appreciated :)
Post Details
- Posted
- 5 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/ionic/comme...