Strange white screen on resume ios app

hi guys. I have strange problem with my ionic 7 app with cordova engine and angular.

the problem only occurs on iOS devices. I can’t replicate it on the ios simulator.

when the application goes into the background and is reopened after some time, in some cases a white screen appears and it is necessary to force close the app.

I’ve read a lot of things but I can’t reproduce the problem on the simulator and I don’t understand how to solve it

Has anyone of you had the same problem or can you help me?

please help me

ionic info

Ionic:

   Ionic CLI                     : 7.1.1 (C:\tools\nvm\v16.14.0\node_modules\@ionic\cli)
   Ionic Framework               : @ionic/angular 7.5.2
   @angular-devkit/build-angular : 16.2.8
   @angular-devkit/schematics    : 16.2.8
   @angular/cli                  : 16.2.8
   @ionic/angular-toolkit        : 9.0.0

Cordova:

   Cordova CLI       : 12.0.0 (cordova-lib@12.0.1)
   Cordova Platforms : android 11.0.0, browser 6.0.0
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 7 other plugins)

Utility:

   cordova-res                          : 0.15.4
   native-run (update available: 1.7.3) : 1.7.2

System:

   Android SDK Tools : 26.1.1 (C:\Users\myuser\AppData\Local\Android\Sdk)
   NodeJS            : v16.14.0 (C:\Program Files\nodejs\node.exe)
   npm               : 8.3.1
   OS                : Windows 10
1 Like

Are you trying this with live reloading or with .apk installation ?

The problem is for ios only. I upload my production package on test flight platform, download and intall it on my iphone 14.

The problem is not easy replicable. If I use other apps, set my app to background, etc… sometimes, when I resume app. It start with white screen and tue user must close (forcing close) the app.

Im having similar problems, mostly accurs when users are downloading the app for the first time or updates it:

   Ionic CLI                     : 7.1.1 
   Ionic Framework: @ionic/angular 7.4.2
   @angular-devkit/build-angular : 16.2.6
   @angular-devkit/schematics    : 16.2.6
   @angular/cli                  : 16.2.6
   @ionic/angular-toolkit        : 10.0.0

Did you solve the issue?

Unfortunatley not, right now the users have to wait for about 30 seconds and then reload, then it usually works. Very annoying.

I’m having exactly the same issue, with Ionic/angular 5.9 / Capacitor 5.4

ionic info :

Ionic:

   Ionic CLI                     : 7.1.5 (/Users/franckbuland/.nvm/versions/node/v18.19.0/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 5.9.4
   @angular-devkit/build-angular : 12.0.5
   @angular-devkit/schematics    : 10.2.4
   @angular/cli                  : 12.0.5
   @ionic/angular-toolkit        : 10.0.0

Capacitor:

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

Utility:

   cordova-res                          : not installed globally
   native-run (update available: 2.0.1) : 1.7.3

I’ve also been getting reports from iOS users regarding this issue. So far I’ve been unable to find out why. Someone opened an issue for the Ionic team on GitHub but it was closed. There’s a discussion on the capacitor project, but I haven’t seen much progress though.

Ionic:

   Ionic CLI                     : 6.20.9 (/Users/xxx/.nvm/versions/node/v20.11.0/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 6.7.5
   @angular-devkit/build-angular : 17.1.1
   @angular-devkit/schematics    : 17.1.1
   @angular/cli                  : 17.1.1
   @ionic/angular-toolkit        : 8.1.0

Cordova:

   Cordova CLI       : 11.1.0
   Cordova Platforms : ios 7.0.1
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 28 other plugins)

Utility:

   cordova-res                          : 0.15.4
   native-run (update available: 2.0.1) : 1.7.2