首页 文章

离子喷溅屏幕未显示且在离子视图中具有白色屏幕

提问于
浏览
1

当通过 cordova run browser 运行时,我在终端中获得 404 /screen404 /apidata.json (附上下面的屏幕截图) . 没有显示启动画面 . 它直接进入根页面(它正在工作而不显示启动画面) . 我也在 ionic view 测试这个应用程序 . 它在旧的Android设备中仅显示白屏(在离子视图中) . 但该应用程序在更新的Android设备上运行良好 without the splash screen (Android 5.0 - 具有离子视图) . 由于我是离子的新手,我不知道是什么导致这种情况 .

注意:我已经替换了resources文件夹中的splash.png . 之后我跑了 ionic cordova resources . 它已将从resources文件夹中的splash.png派生的不同变体(png文件)添加到./resources/android/splash文件夹中 . (很好 . 但是应用程序在启动时不会显示它 . )

以下是有关我的设置的更多信息 .


其他资讯─

PS E:\Sen Files\dev\99eeeeeeeeeeeex\Mobile app\to test\Amila ayyas git\endCusApp> npm list -g --depth=0
C:\Users\Senura\AppData\Roaming\npm
+-- babel@6.23.0
+-- babel-cli@6.24.1
+-- cordova@7.0.1
+-- ionic@3.5.0
`-- nodemon@1.11.0




PS E:\Sen Files\dev\99eeeeeeeeeeeex\Mobile app\to test\Amila ayyas git\endCusApp> cordova platform ls
Installed platforms:
  android 4.0.0
  browser 4.1.0
Available platforms:
  blackberry10 ~3.8.0 (deprecated)
  webos ~3.7.0
  windows ~5.0.0

enter image description here

Cordova run info

enter image description here

enter image description here

更多截图<<链接

希望你会看到这个 . 谢谢你阅读本文 . 请告诉我是什么原因造成的 .

1 回答

  • 1

    启动画面是移动设备的原生功能 . 浏览器以及Ionic View仅是您设计的预览 . Cordova插件和本机功能仅适用于Android Studio等模拟器或最终应用程序版本(例如.apk) .

相关问题