android - Phonegap build with cordova splashscreen plugin not showing my custom splash graphic -


and "custom splash graphic" mean own image. no matter try shows little phonegap robot. note i'm concerned android here. here's i've done:

  • installed plugin via command line
  • ran original image through this converter collection of appropriate android sizes
  • replaced files in these path own (yes, renamed own files these names):

    <gap:splash gap:platform="android" gap:qualifier="port-ldpi" src="res/ldpi.png" /> <gap:splash gap:platform="android" gap:qualifier="port-mdpi" src="res/mdpi.png" /> <gap:splash gap:platform="android" gap:qualifier="port-hdpi" src="res/hdpi.png" /> <gap:splash gap:platform="android" gap:qualifier="port-xhdpi" src="res/xhdpi.png" /> 
  • replaced files in these paths own though shouldn't have splash image:

    <icon gap:platform="android" gap:qualifier="ldpi" src="www/res/icon/android/ldpi.png" /> <icon gap:platform="android" gap:qualifier="mdpi" src="www/res/icon/android/mdpi.png" /> <icon gap:platform="android" gap:qualifier="hdpi" src="www/res/icon/android/hdpi.png" /> <icon gap:platform="android" gap:qualifier="xhdpi" src="www/res/icon/android/xhdpi.png" /> 

at point don't see default phonegap robot image file hiding in project or in config.xml pointing it.

have added default splash screen location so

<preference name="splashscreen" value="screen"/> 

also per new updated docs seen here http://docs.build.phonegap.com/en_us/configuring_icons_and_splash.md.html#icons%20and%20splash%20screens

the gap:splash deprecated , supposed use splash tag

i have found if add plugin using npm in phonegap buil not work following not work

  <plugin name="cordova-plugin-splashscreen" source="npm"/> 

and have add plugin old way followin works

<plugin name="br.com.paveisitemas.splashscreen" spec="2.1.1" source="pgb" /> 

please note in past splash screens specified gap:splash element , platform specified gap:platform. still supported recommend moving splash , platform.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -