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 907 forks source link

iOS, after sharing sometimes the app size changes #1125

Open ygyg70 opened 3 years ago

ygyg70 commented 3 years ago

Using latest version of Cordova iOS (6.1.1) and WKWebView only option. iOS: 13.7 Plugin version 5.6.8 Behavior is very consistent. After sharing to some apps, such as iMessage and WhatsApp, the app looks normal after sharing After sharing to Gmail or Facebook and returning to the app, the size of the app increases and the screen shows a cropped portion of it. Reading window width from Javascript:

Any direction how I can further look for the root cause and fix is also appreciated

LekisS commented 3 years ago

Having the exact same issue, 375px before sharing, 410px after

LekisS commented 3 years ago

Ok, after searching the different issues (https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin/issues/861, https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin/issues/1084), it seems to be caused by cordova-plugin-keyboard.
I removed it and replaced it by cordova-plugin-ionic-keyboard and it worked.

ygyg70 commented 3 years ago

Just updated the project to use ionic keyboard and web view plugins, problem solved. Thanks!

ilyakamens commented 3 years ago

Switching from cordova-plugin-keyboard to cordova-plugin-ionic-keyboard worked for me, too. I used the following preferences:

<preference name="KeyboardResize" value="true" />
<preference name="KeyboardResizeMode" value="native" />