ionic3 打包apk,安装打开后一直停留在启动页面

问题:.app.component.ts中
platform.ready().then(() => {
      // Okay, so the platform is ready and our plugins are available.
      // Here you can do any higher level native things you might need..
      statusBar.styleDefault();
      splashScreen.hide();
    });
splashScreen.hide();    //没有被执行,所以一直停留在启动页面

原因:最终发现是删除之前安装的cordova-plugin-inappbrowser插件,删除不干净。导致apk打开后加载插件找不到。

解决:通过cordova 命令行完全删除插件

npm uninstall --save @ionic-native/in-app-browser

ionic cordova plugin remove cordova-plugin-inappbrowser




猜你喜欢

转载自blog.csdn.net/zhangyongbink/article/details/79540616