IONIC 3 android application start delay

时光毁灭记忆、已成空白 提交于 2019-12-11 09:56:01

问题


I had developed application for my Android, with the following Ionic configuration,

@Ionic\App script : 3.1.10
Cordova Platforms : Android 6.3.0
Ionic Framework : Ionic Angular 3.9.2
Ionic CLI Version : 3.20.0

When I open my application, It shows white screen up to 3 to 5 Seconds, After that only I can able to view my application screen. How to reduce this app open delay ? When I build my application I had used the following command also

ionic cordova build android --prod --release

Even It opens with the same delay ?

Note: I don’t want to show splash screen on my application. Native apps opens immediately, but ionic apps taking too much time to open


回答1:


I had the same issue, researching a lot of it, the solution I found was to just add more time to the splash screen. This delay is due to the connection between the native modules and web modules.

Those are the disadvantage working with hybrid apps. Also you can check if the Ionic 4 upgrade solved this issue and upgrade yours.




回答2:


run --list --prod does not generate the "final" version in apk. To get the delay you need to generate the "final" version with zipalign. Remember that before it is necessary to generate the key with the jarsigner -verbose



来源:https://stackoverflow.com/questions/52369066/ionic-3-android-application-start-delay

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!