splash screen stopped loading

  • 1
  • Question
  • Updated 4 years ago
Hi,

So we did all of our testing and everything worked and was running, we uploaded to google play store. It was approved and now listed on the store. Just got a notification today from our client that the splash screen is now not loading. Can you provide guidance on what may have changed or what I can do to resolve this?

Here is a link to the app. https://play.google.com/store/apps/de...
Photo of Vanessa Byrem-Tangy

Vanessa Byrem-Tangy

  • 42 Posts
  • 0 Reply Likes
  • frustrated

Posted 4 years ago

  • 1
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Vanessa,
are there any more details besides "it is not working"?
Device make and model?
OS version?
phonegap-version you released with?
plugin version you released with?

Also , devices you tested with.

Jesse
Photo of Vanessa Byrem-Tangy

Vanessa Byrem-Tangy

  • 42 Posts
  • 0 Reply Likes
the app is working but the splash screen does not show. it is just a blank screen until the app loads.

Not working on any an all models tested, 6+ different devices

phone-gap verison cli-5.2.0

I assume this is the plugin you are looking for?
Photo of Vanessa Byrem-Tangy

Vanessa Byrem-Tangy

  • 42 Posts
  • 0 Reply Likes
<gap:plugin name="org.apache.cordova.splashscreen" source="npm"/>
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
That plugin doesn't exist on npm.
Take cordova-plugin-splashscreen.

There might be other errors, though. For instance wrong paths or directory structure.
Photo of Vanessa Byrem-Tangy

Vanessa Byrem-Tangy

  • 42 Posts
  • 0 Reply Likes
would it help for you to review our github? I can have it updated in the morning.
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Certainly (whenever "in the morning" is at your location)
(Edited)
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
All yours.
Photo of Joe Velocci

Joe Velocci

  • 10 Posts
  • 0 Reply Likes
Hey Petra, I just want to jump in here. The issue we are having is with the Android platform.

In regards to the npm plugins, do I need to change every plugin's src attribute? Is there documentation on that? It seems like every piece of documentation I find is really out of date.

Here is a link to the git repository:
https://github.com/Mosaicstg/IUPAT-DC...
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
You have no splashes for xxhdpi and xxxhdpi. Perhaps you are testing on such device.

Plugins: find the proper names here:
http://cordova.apache.org/plugins/
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Joe,
This FAQ should help. Read the bold sentences first.
Top Mistakes by Developers new to Cordova/Phonegap

NOTE: your issue with the documentation *could be* because you are reading the CLI documenation and not the BUILD. The FAQ covers this.
Build documenation
ANOTHER Note, the plugin section for Build is confusing. Please ask questions, if it does not make sense to you.

Best of Luck
Jesse
Photo of Joe Velocci

Joe Velocci

  • 10 Posts
  • 0 Reply Likes
So I updated all my plugins, icons, and splash screens, and everything works great when testing, but trying to subit an updated apk to google play i am getting the following error:

Upload failed

Your APK's version code needs to be higher than 252.

I never had this happen in the past. Can you take another look and shed some light on what happened? Thanks!

https://github.com/Mosaicstg/IUPAT-DC...
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
It's the gradle problem.
Google 'Phonegap gradle versioncode' and you'll find the issue and its history.

Try this solution:
<preference name="android-versionCode" value="253" />
Photo of Vanessa Byrem-Tangy

Vanessa Byrem-Tangy

  • 42 Posts
  • 0 Reply Likes
Hi Petra,

would you mind explaining where I should put this code in the file in order to solve this problem.
Photo of Vanessa Byrem-Tangy

Vanessa Byrem-Tangy

  • 42 Posts
  • 0 Reply Likes
but in order to get it to work this also had to be inserted <preference name="android-build-tool" value="gradle" />
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
Thanks for the update. It will help others in the future.
Jesse
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Vanessa, you already had that (otherwise you wouldn't have had the versioncode issue), and gradle is NOT required for the splashscreen plugin.
I think several things are getting mixed up, here.
(Edited)
Photo of Joe Velocci

Joe Velocci

  • 10 Posts
  • 0 Reply Likes
Gradle had nothing to do with the splash screen. I had to update every plugin in the config file which caused the second android issue.
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
Thanks Joe,
Okay. Also good to know. Your feedback will help other developers in the future.
Jesse