White screen on splashscreen after close app by "back"


#1

Hi there,

I have an issue with splashscreen.

On startup it works fine, but when I close app by “back” button and reopen it, I have white screen instead of splashscreen image.

But if I “kill” app via last used applications, it also works fine.

Have anyone had similar problem with it?

config.xml

<preference name="SplashScreen" value="screen"/>
<preference name="SplashScreenDelay" value="3000"/>

<platform name="android">
<icon src="resources\android\icon\drawable-ldpi-icon.png" density="ldpi"/>
<icon src="resources\android\icon\drawable-mdpi-icon.png" density="mdpi"/>
<icon src="resources\android\icon\drawable-hdpi-icon.png" density="hdpi"/>
<icon src="resources\android\icon\drawable-xhdpi-icon.png" density="xhdpi"/>
<icon src="resources\android\icon\drawable-xxhdpi-icon.png" density="xxhdpi"/>
<icon src="resources\android\icon\drawable-xxxhdpi-icon.png" density="xxxhdpi"/>
<splash src="resources\android\splash\drawable-port-ldpi-screen.9.png" density="port-ldpi"/>
<splash src="resources\android\splash\drawable-port-mdpi-screen.9.png" density="port-mdpi"/>
<splash src="resources\android\splash\drawable-port-hdpi-screen.9.png" density="port-hdpi"/>
<splash src="resources\android\splash\drawable-port-xhdpi-screen.9.png" density="port-xhdpi"/>
<splash src="resources\android\splash\drawable-port-xxhdpi-screen.9.png" density="port-xxhdpi"/>
<splash src="resources\android\splash\drawable-port-xxxhdpi-screen.9.png" density="port-xxxhdpi"/>
</platform>

@EDIT
Below my system info:

Your system information:

Cordova CLI: 5.0.0
Gulp version:  CLI version 3.9.0
Gulp local:   Local version 3.9.0
Ionic Version: 1.0.1
Ionic CLI Version: 1.6.1
Ionic App Lib Version: 0.3.3
OS: Windows 8.1
Node Version: v0.12.6

#2

Hi,

I have the same issue with ionic lib 1.0.0 and 1.0.1.

Cordova CLI: 5.0.0
Ionic Version: 1.0.1
Ionic CLI Version: 1.5.5
Ionic App Lib Version: 0.2.2
OS: Windows 7 SP1
Node Version: v0.12.4


#3

Is there any possibility to fix this issue?


#4

Hi,

It’s look like a bug of 2.1.0 version of cordova-plugin-splashscreen.

I changed the cordova-plugin-splashscreen version from 2.1.0 to 2.0.0 in my project, and the splashscreen works normally when app is closed with the device back button.


#5

Yes, that’s right. Changing version helped me too :smile:


#6

Issue created : https://issues.apache.org/jira/browse/CB-9374


#7

Awesome ! :smile:

Thanks


#8

Hey guys i am facing the same issue.
Whereas my previous app created in the same environment is working fine.
The new one which i created today is showing the same issue.

Any solution…??


#9

As jmdev said, you have to downgrade to version 2.0.0


#10

hi greg how to downgrade no idea bout it


#11

You have to specify it in package.json file.

I did that this way:

"cordovaPlugins": {
    ...
    "cordova-plugin-splashscreen@2.0.0",
    ...
}

After that, as far as I remember, you have to run:

ionic state restore

To be honest, I am not sure that’s the best way for doing this.

But you have to remember when you are going to save ionic state

ionic state save

Ionic will remove @2.0.0


#12

i tried the same bro, but no success
any other way


#13

Well… that’s weird…

Would you paste here you ionic info details? And cordova plugin list?


#14

hey greg got it working

used cordova plugin rm …

to remove and its working fine now
thanks for help


#15

That’s great :smile:

To sum up - you had removed cordova-splashscreen and you had installed it with @2.0.0 ?


#16

It’s work for me too :slight_smile: Thanks !


#17

Awesome, you save my day. Thank you very much.


#18

Seems to be fixed in 3.0.1-dev via

<preference name="SplashShowOnlyFirstTime" value="true|false" />

I tried it, at first sight it works… Hope no bug will pop out.

To install : cordova plugin add https://github.com/apache/cordova-plugin-splashscreen.git


#19

I’m still having this issue. Tried removing the splashscreen plugin and reinstalling @2.0.0, no luck.
I’ve tried virtually everything, been googling around for days now.

This is my splash config:

    <preference name="SplashScreen" value="screen" />
    <preference name="AutoHideSplashScreen" value="true" />
    <preference name="SplashScreenDelay" value="10000" />
    <preference name="ShowSplashScreenSpinner" value="false" />
    <preference name="SplashMaintainAspectRatio" value="false" />
    <preference name="SplashShowOnlyFirstTime" value="false" />
    <preference name="FadeSplashScreen" value="false" />

and I hide the splash screen when I run app, inside $ionicPlatform.ready().
For the love of god someone help me out I need to deliver this tomorrow :smiley: T_T

The app runs normally, then you get to the login screen and everything works as expected, but when the app tries to navigate to home view, a blank white screen of death is displayed. Couldn’t find it with google inspector, there’s nothing wrong with the markup or CSS.

If I close the app, dump it from memory and open again, it works fine. Until I press the device back button or close a modal or something, there it is again!

Any help is appreciated


#21

I am having same issue, following.