Not Working SplashScreen

  • 1
  • Problem
  • Updated 4 years ago
<!-- <?xml version='1.0' encoding='utf-8'?>
<widget id="com.phonegap.teste" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0">
<name>teste</name>
<description>
Hello World sample application that responds to the deviceready event.
</description>
<author email="support@phonegap.com" href="http://phonegap.com">
PhoneGap Team
</author>
<content src="index.html" />
<preference name="DisallowOverscroll" value="true" />
<preference name="android-minSdkVersion" value="14" />
<plugin name="cordova-plugin-battery-status" source="npm" spec="~1.1.1" />
<plugin name="cordova-plugin-camera" source="npm" spec="~2.1.1" />
<plugin name="cordova-plugin-media-capture" source="npm" spec="~1.2.0" />
<plugin name="cordova-plugin-console" source="npm" spec="~1.0.2" />
<plugin name="cordova-plugin-contacts" source="npm" spec="~2.0.1" />
<plugin name="cordova-plugin-device" source="npm" spec="~1.1.1" />
<plugin name="cordova-plugin-device-motion" source="npm" spec="~1.2.0" />
<plugin name="cordova-plugin-device-orientation" source="npm" spec="~1.0.2" />
<plugin name="cordova-plugin-dialogs" source="npm" spec="~1.2.0" />
<plugin name="cordova-plugin-file" source="npm" spec="~4.1.1" />
<plugin name="cordova-plugin-file-transfer" source="npm" spec="~1.5.0" />
<plugin name="cordova-plugin-geolocation" source="npm" spec="~2.1.0" />
<plugin name="cordova-plugin-globalization" source="npm" spec="~1.0.3" />
<plugin name="cordova-plugin-inappbrowser" source="npm" spec="~1.3.0" />
<plugin name="cordova-plugin-media" source="npm" spec="~2.2.0" />
<plugin name="cordova-plugin-network-information" source="npm" spec="~1.2.0" />
<plugin name="cordova-plugin-splashscreen" source="npm" spec="~3.2.1" />
<plugin name="cordova-plugin-statusbar" source="npm" spec="~2.1.2" />
<plugin name="cordova-plugin-vibration" source="npm" spec="~2.1.0" />
<plugin name="cordova-plugin-whitelist" source="npm" spec="~1.2.1" />
<icon src="icon.png" />
<platform name="android">
<icon density="ldpi" src="res/icon/android/drawable-ldpi-icon.png" />
<icon density="mdpi" src="res/icon/android/drawable-mdpi-icon.png" />
<icon density="hdpi" src="res/icon/android/drawable-hdpi-icon.png" />
<icon density="xhdpi" src="res/icon/android/drawable-xhdpi-icon.png" />
<icon density="xxhdpi" src="res/icon/android/drawable-xxhdpi-icon.png" />
<icon density="xxxhdpi" src="res/icon/android/drawable-xxxhdpi-icon.png" />
<splash density="land-ldpi" src="res/screen/android/drawable-land-ldpi-screen.png" />
<splash density="land-mdpi" src="res/screen/android/drawable-land-mdpi-screen.png" />
<splash density="land-hdpi" src="res/screen/android/drawable-land-hdpi-screen.png" />
<splash density="land-xhdpi" src="res/screen/android/drawable-land-xhdpi-screen.png" />
<splash density="land-xxhdpi" src="res/screen/android/drawable-land-xxhdpi-screen.png" />
<splash density="land-xxxhdpi" src="res/screen/android/drawable-land-xxxhdpi-screen.png" />
<splash density="port-ldpi" src="res/screen/android/drawable-port-ldpi-screen.png" />
<splash density="port-mdpi" src="res/screen/android/drawable-port-mdpi-screen.png" />
<splash density="port-hdpi" src="res/screen/android/drawable-port-hdpi-screen.png" />
<splash density="port-xhdpi" src="res/screen/android/drawable-port-xhdpi-screen.png" />
<splash density="port-xxhdpi" src="res/screen/android/drawable-port-xxhdpi-screen.png" />
<splash density="port-xxxhdpi" src="res/screen/android/drawable-port-xxxhdpi-screen.png" />
</platform>
<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<platform name="android">
<allow-intent href="market:*" />
</platform>
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
</platform>
</widget>
-->
Photo of Caique Nascimento

Caique Nascimento

  • 8 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 1
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
What is "not working"? Do you get wrong results? Doesn't the app build? Doesn't it launch?
And for what OS "doesn't it work"? For which screen dimensions?

(Anyway: you are using the density attribute with compound qualifiers, which is not correct. And you have a previous version of the splashscreen plugin set)
Photo of Caique Nascimento

Caique Nascimento

  • 8 Posts
  • 0 Reply Likes
Android
It does not show the splash when you started the application
any dimensons
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Petra,
desktop app. first post for OP.
Jesse
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Caique,
do you have both index.html and config.xml in the ROOT ("/") of your zip file?
Photo of Caique Nascimento

Caique Nascimento

  • 8 Posts
  • 0 Reply Likes
Yes, Petra!
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
OK.
I assume you corrected the two issues I mentioned previously.
If your zip file is available online somewhere, please post its url, and I'll be happy to have a look.
Photo of Caique Nascimento

Caique Nascimento

  • 8 Posts
  • 0 Reply Likes
only works with:
<!--<Splash src = "splash.png" />-->
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
That's just a comment line.

(Or could it be that you only present it as comment, because you failed to read the instructions under "some HTML allowed"?)
(Edited)
Photo of Caique Nascimento

Caique Nascimento

  • 8 Posts
  • 0 Reply Likes
I have not read the html instructions allowed
in my code not is commented
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Caique,
wrap your code with <code></code>
Jesse

@Petra,
&amplt; = <
Jesse
Photo of Caique Nascimento

Caique Nascimento

  • 8 Posts
  • 0 Reply Likes
Thx Jesse!

I am installing the app on my android xperia zl and only the icons work. The splash configuration is not working in the application

when I install the application on my phone. The splash screen does not work, only works if I put the splash default.
I do not know what else to do!
The images are in the right ways. But it does not work, do not know if missing some setting in my phonegap application!
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Let me repeat what I wrote three days ago, then

If your zip file is available online somewhere, please post its url, and I'll be happy to have a look.
Photo of Caique Nascimento

Caique Nascimento

  • 8 Posts
  • 0 Reply Likes
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
OK. Here is some feedback.

1. I asked you if config and index are both in the root of the zip, and you said 'yes'.
The correct answer is 'no'. They are in a directory called /www, instead.
You should remove that /www directory level, so they are in the root.

2. You are missing a specification in config for
res/screen/android/drawable-land-xxhdpi/screen.png

3. You are using a density attribute with a value containing compound qualifiers. You can't do that. Density is density, only. Use the qualifier attribute for compound qualifiers. See the Icons and Splashscreen section of the PGB Docs

4. For iOS, you specified paths that start with "www/", which is incorrect. Adjust the paths.

5. You have pinned most plugins to a previous (not the latest) version. Are you aware that most plugins have updated versions at npm, now?

6. Do you really need all those plugins?
Photo of Caique Nascimento

Caique Nascimento

  • 8 Posts
  • 0 Reply Likes
Thanks for your patience, solved!