Our app was working fine until we enabled live updates with Appflow. Ever since we did that we are stuck on the splash screen. I have seen a number of posts regarding this, but I have tried all things that solved their issues with no luck myself.
This may or may not be related to the live update configuration that you set. The best way to figure out what’s going on is to install the app on a device and call the following methods from the chrome/safari inspector. Call these methods from a fresh install of your Appflow native build.
IonicCordova.deploy.getConfiguration()
This will display the plugin config including the configured channel for this install.
IonicCordova.deploy.checkForUpdate()
This will tell us if an update is available.
IonicCordova.deploy.getCurrentVersion()
This will return all the details of the currently running deploy update including the job id of the web build deployed. This really helps to zero in on the specific update that’s causing a problem.
If you are not sure how to enable the chrome inspector refer to the docs on the same here.
If you need further assistance with this issue I would encourage you to contact the Appflow support with the above results and we can take a closer look.
The issue I am currently facing is that since the issue is happening early on and freezing on the splash screen, I am unable to connect to the inspector anymore. It just hits the splash and then inspector goes away. I will add, I also created a new vanilla ionic application without any other plugins, and I only updated the title for “Hello World”, then attempted to hook that up to Appflow. It has the exact same symptom. It freezes on the splash and I cannot use the inspector. So I am assuming this has got to be some sort of the configuration issue perhaps with a dependency that is a bad version? The main application is not on the latest bits, but the new test application I tried is on latest, and it still failed in the same way. Does that at all ring any bells of what could be causing this?
The plugin adds <preference name="AutoHideSplashScreen" value="false"/>, which prevents the Splash from automatically hiding.
Depending on your app logic and the selected appflow update method you might want to overwrite the preference to <preference name="AutoHideSplashScreen" value="true"/>. Or call the hide method of splash screen plugin.
@jcesarmobile Thank you very much. It sounds like this is not the ideal solution however, but instead it we should have the HideAutoSplashScreen turned off and then we manually close the splash screen with platform.ready(). However, I tried to implement this in the constructor of our first page and it didn’t seem to do the trick. Is there a preferred way on HOW and WHEN we are supposed to hide the splash screen?
We have not, but I will definitely try this. We tried putting it a few other places and but couldn’t get the splash screen to actually hide. I didn’t try to create a method outside the constructor though, so I will give that a try.
Hi there just if you’re still having issue with splash screen. I found the solution in one forum here. Replace your cordova script for splash screen to capacitor: