question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: Ionic 6 production build causes white screen in ios versions 14.4 and lower

See original GitHub issue

Prerequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x
  • Nightly

Current Behavior

ionic-angular app with production build (–prod) causes “ionic white screen of death” in ios versions 13.5 and 14.4 (both in simulators and real device) but not sure about the real span of version for this behaviour. app works and responds in the background but nothing on screen

Expected Behavior

ionic-angular production build should work without problem in these versions of ios

Steps to Reproduce

create blank ionic-angular app with either capacitor or cordova capacitor: ionic build --prod npx cap sync

cordova: ionic cordova build ios --prod

when running the app no problem in ios 16.0 but white screen on mentioned older versions of ios

Code Reproduction URL

No response

Ionic Info

Ionic:

Ionic CLI : 6.20.3 (/Users/emreakkoc/.nvm/versions/node/v16.10.0/lib/node_modules/@ionic/cli) Ionic Framework : @ionic/angular 6.3.3 @angular-devkit/build-angular : 14.2.7 @angular-devkit/schematics : 14.2.7 @angular/cli : 14.2.7 @ionic/angular-toolkit : 6.1.0

Cordova:

Cordova CLI : 11.0.0 Cordova Platforms : ios 6.0.0 Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 3 other plugins)

Utility:

cordova-res : 0.15.4 native-run : 1.7.1

System:

ios-deploy : 1.11.4 ios-sim : 8.0.2 NodeJS : v16.10.0 (/Users/emreakkoc/.nvm/versions/node/v16.10.0/bin/node) npm : 8.19.2 OS : macOS Monterey Xcode : Xcode 14.0.1 Build version 14A400

Additional Information

–prod flag is deprecated since angular 13 but ionic cordova build ios --configuration production also did not help and causes the same behaviour

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
liamdebeasicommented, Oct 31, 2022

Thanks for the report. Can you update your .browserslistrc or browserslist file to have the following contents and let me know if it resolves the issue?

Chrome >=60
Firefox >=63
Edge >=79
Safari >=13
iOS >=13
Firefox ESR
1reaction
lincolnthreecommented, Nov 10, 2022

This also solved the problem for us. Great thought about putting this in the migration notes! Thanks Liam!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ionic 6 --prod build gives white screen in ios versions 14.4 and ...
Current Behavior ionic-angular app with production build (–prod) causes “ionic white screen of death” in ios versions 13.5 and 14.4 (both in ...
Read more >
App shows white screen when converting from ionic to IOS or ...
I have made a web application using angular/ionic which works perfectly fine without error and shows its content on the browser. However, when ......
Read more >
Firebase JavaScript SDK Release Notes - Google
Fixed a bug in onBackgroundMessage() that caused notifications to display twice. See Github issue #5516. Version 9.6.7 - February 17, 2022. Cloud Firestore....
Read more >
Debugging the Ionic White Screen of Death - YouTube
In this video, we walk through 4 different steps you can take to help track down errors that are occurring in your Ionic...
Read more >
News | VoltBuilder
... build is output to the log. If set to false , dramatically less output is produced. ... The last version of Xcode...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found