moust / phonegap-xapkreader

Cordova plugin to access files in APK Expansion Files
13 stars 17 forks source link

moust/psyon plugin and SplashScreen problem #12

Closed adys123 closed 10 years ago

adys123 commented 10 years ago

Hi guys. I have a problem with this plugin and the app splash screen. The splash screen won't work anymore when I install this. When the app starts, it will display the homepage instantly. To make the splash screen to work again, I have to install the splashscreen plugin from phonegap (cordova plugin add org.apache.cordova.splashscreen), then I have to add some code lines in index.html and in confing.xml. But after that, when app starts it won't display the splash screen from beginning..I mean, the app starts, a blank screen is displayed for 0.5 - 1 second then the splash appears. Sometimes instead of that blank screen i can see the homepage which is initializing. I want to ask you guys if you know what's the conflict is? If you need more info ask please. Thank you.

adys123 commented 10 years ago

I have found out that this line `

` is causing the problem(from Manifest file). If I remove it, the splash screen is displayed, but the app will no longe search for the expansion file. If the line remains there, the splash screen is no longer displayed but the app will searc for expansion.
moust commented 10 years ago

This line is the activity statement for the plugin, so it cannot work without it.

Concerning the latence when displaying the splashscreen , I'm not sure why it happens but the plugin's activity probably executes before the splashscreen display and it results this latence.

The plugin uses the onload parameter to be instanciated on the app launch, but the spashscreen plugin seem to does not do it, so it is not executed until it was first referenced by a call from JavaScript. So it's probably the cause of this behavior.

adys123 commented 10 years ago

never mind moust.. I managed to make this work without any plugin. :)

johnjohngc commented 9 years ago

hello, I have the same problem , could you explain how you have solved . thank you in advance