离子3飞溅后卡在白色屏幕上

时间:2019-01-30 16:28:18

标签: ionic3

这让我感到震惊,我不知道为什么在启动屏幕出现白屏并且程序永久卡在该屏幕后会发生这种情况。

我阅读了许多解决方案,但是没有一个有帮助,或者可能仍然做错了什么。请帮助我。

当我使用--prod在调试模式下运行此程序时,它可以正常工作,但使用--release时,则无法正常工作。

即使使用chrome浏览器中的开发工具,它也可以正常工作

这是我的config.xml文件……问我是否还需要更新。

    <preference name=“ScrollEnabled” value=“false” />
    <preference name=“android-minSdkVersion” value=“19” />
    <preference name=“BackupWebStorage” value=“none” />
    <preference name=“SplashMaintainAspectRatio” value=“true” />
    <preference name=“SplashShowOnlyFirstTime” value=“false” />
    <preference name=“SplashScreen” value=“screen” />
    <preference name=“FadeSplashScreenDuration” value=“300” />
    <preference name=“SplashScreenDelay” value=“10000” />
    <preference name=“AutoHideSplashScreen” value=“false” />
    <preference name=“FadeSplashScreen” value=“true” />
    <preference name=“ShowSplashScreen” value=“true” />

App.comonent.ts

    import { Component,ViewChild } from '@angular/core';
    import { Platform,MenuController, App , NavController ,Nav,ToastController,Events} from 'ionic-angular';
    import { StatusBar } from '@ionic-native/status-bar';
    import { SplashScreen } from '@ionic-native/splash-screen';


    @Component({
    templateUrl: 'app.html'
    })
    export class MyApp {
    @ViewChild('content') nav: NavController;
    rootPage:any = ManagementPage;
    // rootPage:any = HomePage;
    selectedMenu: any=false;
    selectedMenu2: any=false;

    img:any;
    fetched_info={'firstname':'','lastname':'','username':'','profilepic':'','gender':''}

    showSplash = true; 

    constructor( public toast:ToastController,platform: Platform, statusBar: StatusBar,
    splashScreen: SplashScreen, public app:App, public splitPane: SplitPane,
    public menu: MenuController,private   ev:Events) {



    platform.ready().then(() => {
    this.ev.subscribe('hello', (firstname,lastname,username,profilepic,gender)=>{
    this.fetched_info.firstname=firstname;
    this.fetched_info.lastname=lastname;
    this.fetched_info.username=username;
    this.fetched_info.profilepic=profilepic;
    this.fetched_info.gender=gender;
    });


    statusBar.styleDefault();
    splashScreen.hide();
    setTimeout(function(){
    this.showSplash = false;
    },3000);
    setTimeout(()=>{
    splashScreen.hide();  
    },1000);
    });

    }

离子信息         离子性:

    ionic (Ionic CLI) : 4.9.0 (C:\Users\ACER\AppData\Roaming\npm\node_modules\ionic)
    Ionic Framework : ionic-angular 3.9.2
    @ionic/app-scripts : 3.2.1

    Cordova:

    cordova (Cordova CLI) : not installed
    Cordova Platforms : android 7.0.0, browser 5.0.4
    Cordova Plugins : not available

    System:

    NodeJS : v8.11.3 (C:\Program Files\nodejs\node.exe)
    npm : 6.5.0
    OS : Windows 10

我几乎尝试了所有解决方案。我再次将应用程序安装为空白,然后仍然没有运气。

已删除的android平台,再次添加它没有运气 希望你们有我还没有尝试过的东西

0 个答案:

没有答案
相关问题