Coming soon - Get a detailed view of why an account is flagged as spam!
view details

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.

1
Help request - Fun with @native/social-sharing
Post Body

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 :)

Author
Account Strength
90%
Account Age
7 years
Verified Email
Yes
Verified Flair
No
Total Karma
691
Link Karma
293
Comment Karma
398
Profile updated: 2 days ago
Posts updated: 2 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
5 years ago