EddyVerbruggen / SocialSharing-PhoneGap-Plugin

👨‍❤️‍💋‍👨 Cordova plugin to share text, a file (image/PDF/..), or a URL (or all three) via the native sharing widget
MIT License
1.78k stars 909 forks source link

Can't share to Yammer on iOS #325

Open chrisbarnett1 opened 9 years ago

chrisbarnett1 commented 9 years ago

This code works well on Android but not iOS window.plugins.socialsharing.share(null, null, '/path/to/image', null); This opens the native sharing window. I can select Yammer which opens the Yammer popup. There is no preview of my image though. When selecting "Post" the content never gets to https://www.yammer.com

EddyVerbruggen commented 9 years ago

Hi, I've been able to reproduce this problem. It does work with a URL by the way. The preview is shown and it's correctly shared.

It's the only app that has trouble receiving an image so I'm blaming Yammer for now. Can you perhaps try to find a support forum and see if this is a more common problem? Note that they added the iOS 8 extension in their version released December 14th 2014 (per AppStore update notes).

chrisbarnett1 commented 9 years ago

Hi Eddy, thanks for having a look. I did suspect the issue may be with the Yammer app.

I wasn't able to get the share to work with a URL though. window.plugins.socialsharing.share(null, null, 'https://www.google.nl/images/srpr/logo4w.png', null) Any hints?

I did post a question on the Yammer forum at the Microsoft Office 365 Community a couple of months ago (http://community.office365.com/en-us/f/176/t/290525.aspx) but didn't get a reply.

EddyVerbruggen commented 9 years ago

Hi, I meant passing it as the URL param, so the fourth as in this example:

window.plugins.socialsharing.share(null, null, null, 'http://www.x-services.nl');
sherozejoomun commented 7 years ago

Hello Eddy, i cannot share on the Yammer App on ios also. Though it works fine on Android. Any update concerning this. I am using the following.

SocialSharing.shareVia('yammer', message, subject).then(() => { console.log('Success'); }).catch((err) => { console.log('Error:', err); });

If i use the canShareVia('yammer'), it seems that the plugin cannot find yammer on ios.

Besides i found this in the code:

It seems that the try part is never executed.