IONIC 3 android应用程序启动延迟 [英] IONIC 3 android application start delay
问题描述
我已经为Android开发了具有以下离子配置的应用程序,
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
当我打开我的应用程序时,它显示白屏长达3到5秒,此后,我只能查看我的应用程序屏幕.如何减少此应用的打开延迟? 在构建应用程序时,我还使用了以下命令
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构建android --prod --release
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
推荐答案
run --list --prod
不会在apk中生成最终"版本.
要获得延迟,您需要使用zipalign
生成最终"版本.
请记住,在必须使用jarsigner -verbose
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
这篇关于IONIC 3 android应用程序启动延迟的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!