简体   繁体   中英

White screen while opening my ionic app in some devices

In few mobiles,my ionic app shows white screen only, when apk build with --prod mode. But the same apk works on other mobiles. If i build without --prod, it is working in all mobiles. i don't have any idea. Please help me out. Thanks in advance.

If you are using android platform version 10.0.0 or higher. Then you have to remove whitelist plugin, if it is installed in your project. It doesn't work with android 10 or later. This is the reason it shows white screen after opening installed application.

cordova plugin rm cordova-plugin-whitelist
cordova prepare   OR ionic cordova prepare

if prepare doesn't work try to remove platform and add again.

ionic cordova platform rm android
ionic cordova platform add android

Thanks, Hope it helps you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM