phonegap 3.1 - Unable to hide splash screen on device ready

后端 未结 6 510
北荒
北荒 2020-12-10 16:15

Using phonegap 3.1 I\'m trying to hide the splash screen when device is ready:

document.addEventListener(\"deviceready\", onDeviceReady, false);

function on         


        
6条回答
  •  [愿得一人]
    2020-12-10 16:49

    After upgrading to Phonegap Desktop 0.3.6, I had a similar issue and one of my older apps was stuck on the splash screen. In the configuration window, it was showing the correct app name and version and it was updating as soon as I was modifying the config.xml. In the console I had only one error: 500 for http://localhost:3000/cordova_plugins.js

    A new app was working fine.

    I tried all the above:

    • splash screen plugin and configuration
    • adding the cordova.js and cordova_plugins.js to index.html. This is not necessary anymore since many versions ago - the build does it for you.
    • in the platforms/android/assets/www folder there were cordova.js and cordova_plugins.jsfiles present
    • in the config.xml there was specified

    In the end what solved my problem was to completely delete the platforms folder and run cordova platform add android again. I guess it's safe to do this after each Phonegap upgrade.

提交回复
热议问题