[英]ionic 3 after installed app on mobile splash after white screen for long time ? how i can solve this?
I'm creating an app in ionic 3
我正在 ionic 3 中创建一个应用程序
after installed in mobile showing a white screen for a long time why?
手机安装后长时间白屏是什么原因?
how I can solve this...
我怎么能解决这个...
Config.xml here此处为 Config.xml
This is happening because of long SplashScreenDelay
time.发生这种情况是因为
SplashScreenDelay
时间过长。
Replace代替
<preference name="SplashScreenDelay" value="22000" />
with和
< preference name="SplashScreenDelay" value="2000" />
<
preference name="SplashScreenDelay" value="2000" />
Try Updating your main.ts file as below尝试如下更新您的 main.ts 文件
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app.module';
import {enableProdMode} from "@angular/core";
enableProdMode();
platformBrowserDynamic().bootstrapModule(AppModule);
and build your app with --prod flag并使用 --prod 标志构建您的应用程序
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.