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

After sharing image via FB, app reloads #371

Open jamminjames opened 9 years ago

jamminjames commented 9 years ago

Using the general sharing option, like: onclick="window.plugins.socialsharing.share(null,null,'http://www.example.com/04-1.jpg','http://www.example.com') when I share via Facebook, after uploading the image, it seems to exit the app, then the app reloads. This doesn't happen if I share via Twitter or other options. Is this a bug, or am I doing something wrong?

Thanks!

chrisbenseler commented 9 years ago

It happens to me with any kind of share. Even if the user cancels the share, the app reload.

thedang commented 9 years ago

yeah, me too. I build with cordova, and it happens. Pls help me.

EddyVerbruggen commented 9 years ago

Are you all using Android? Perhaps the same Android version even? I'd like to be able to tackle this one but I need any details you can spare since I can't reproduce it.

chrisbenseler commented 9 years ago

Eddy, I noticed that running the same app in a different Android, the problem doesn't appear. In my Motorola with Android 4.4.4 it's still happening, and not only with your plugin. Anything that opens other app (i.e.: using uk.co.workingedge.phonegap.plugin.LaunchNavigator plugin to open an instance of Google Maps) makes my app crash and reload. In a Nexus running Android 5.1.1, it doesn't happen.

I'll take a look at the logs soon, but I guess that the problem is not with the plugin code, as long as the problem happens with other plugins.

jamminjames commented 9 years ago

Mine is running Android 4.4 as well.

rafaeluzzi commented 9 years ago

Im getting an app reload in iOS8 after cancel or any share. Using it with cordova on a supersonic appgyver app. UPDATE: Is not a reload that is happening in my app, im triggering the share dialog from a modal view that view layer is getting closed(pop) on canceling or successful share everytime