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

Issues with PrivacyScreen Plugin on Android #577

Open Alex-Sessler opened 8 years ago

Alex-Sessler commented 8 years ago

I've been using this Plugin for a while, but just recently found out, that there are Problems on Android when using it together with the PrivacyScreen Plugin. What the PrivacyScreen plugin basically does is add the WindowManager.LayoutParams.FLAG_SECURE to the Cordova activity. Then, when the App enters the background, there is only a blank screen shown in the app switcher. Now after i shared something using your plugin, the blank screen is gone and it either shows the whatsapp chat selection (when shared with whatsapp) or the last screen of the app (when shared with FB). This stays the same even when i change to a different view in the app. Do you have any idea what could be wrong there?

EddyVerbruggen commented 8 years ago

Tried to reproduce this on an Android 6 simulator and Android 4.4.4 device. Both no issue. So I'm guessing I'm trying to reproduce this in a different way then you produced it.

Can you perhaps share a little video of the issue and also make a note of the devices you've seen this issue on?

Alex-Sessler commented 8 years ago

I wasn't able to reproduce this in a Simulator. I've seen this happen on my OnePlus One (Android 5.1 and 6) and a Galaxy S6 (Android 5.1). Unfortunately, I have no Android <5 Testing device here...

Unfortunately, I can't really share a Video of my App, because it's a Productive App for a Big Company... I might try some more debugging later.