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

Slow first share #699

Open Wieltje opened 7 years ago

Wieltje commented 7 years ago

@EddyVerbruggen, thank you for the great plugin.

One thing is bothering me however: one galaxy S6 (android 6.01) it takes up to a few seconds to load the picker on first share. On subsequent calls it's loading almost instantly.

Note:

So, apparently some initialisation is performed on first load (by plugin or OS), which is cached by the OS. However, I would love to have a solution for this like a function which can force this initialisation being performed on the background when opening the app.

numerized commented 7 years ago

Hi Guys, same here.

pke commented 7 years ago

Version 5.1.1 does not have this problem. Thats one of the reasons I have it pinned in my project. <plugin name="cordova-plugin-x-socialsharing" spec="https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin.git#5.1.1" />

nielskrijger commented 7 years ago

thanks @pke that appears to have solved the issue for me as well.

lucasprogamer commented 4 years ago

i'll solved this loading the image before call the plugin. i get the base64 from server on load page and this solve the problem.