Strange Android icon at startup

I’m having an intermittent problem with my Ionic 6/capacitor app on Android that I can’t quite track down. I’m hoping someone else had seen this issue and has a suggestion. Occasionally, when I start the app, I get a white page with a strange Android-like icon and then nothing else happens.

Here’s some relevant info about my app setup

   Ionic CLI                     : 6.20.8 (/Users/abc/.nvm/versions/node/v16.14.2/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 6.5.3
   @angular-devkit/build-angular : 13.2.6
   @angular-devkit/schematics    : 14.2.9
   @angular/cli                  : 14.2.9
   @ionic/angular-toolkit        : 7.0.0

   Capacitor CLI      : 4.6.3
   @capacitor/android : 4.6.3
   @capacitor/core    : 4.6.3
   @capacitor/ios     : 4.6.3

I have the following Capacitor plugins installed


I’m not sure if this is an Android issue, Ionic issue, or Capacitor plugin issue. I’m assuming that it’s a startup problem, but not sure what might be failing. I have only seen this previously during development when trying to start the app from Android Studio and the device screen was off, but now a user has reported this issue from the production app. Has anyone seen this type of issue before?

You need to generate new assets: GitHub - ionic-team/capacitor-assets: Local Capacitor icon/splash screen resource generation tool

Thanks for the reply, but I’m curious how this will solve my issue? As I wrote, this is an intermittent issue and does not occur often. The app works as it should 95% of the time

It will solve it by replacing any remnants of the old files still laying around.

Why would this be only an intermittent problem using the exact same files every time the app is started?

I think this is an Android bug on the splash screen animation.

You can try disabling the animation setting the launchFadeOutDuration to 0 in capacitor config file

The setting was implemented in 4.2.0 of splash-screen plugin, so you’ll need to update the plugin first since you are in 4.1.4

Thanks! I’ll take a look at this. That change to the plugin seems to be related to Android 12 but I’m seeing this issue even on older devices like Android 6. I’ll upgrade and see if it makes a difference