简体   繁体   English

离子电容器应用程序在 ios 中仅显示白色空白屏幕

[英]Ionic capacitor app shows only white blank screen in ios

I have an app developed in Ionic it is working fine in Web and Android it is even in Google Play Store right now but when I try to run it on simulator or device it just show a blank white screen not even splashscreen.我有一个用 Ionic 开发的应用程序,它在 Web 和 Android 中运行良好,它现在甚至在 Google Play 商店中,但是当我尝试在模拟器或设备上运行它时,它只显示空白屏幕,甚至没有闪屏。

Try it: In capacitor.config.json file, we have an object, we need to change “webDir” default value is “src”尝试一下:在 capacitor.config.json 文件中,我们有一个 object,我们需要更改“webDir”默认值是“src”

{
    …
    “webDir”: “src”
    …
}

//“webDir” value will be “www”.

Out of the information given it could be anything.在给出的信息中,它可以是任何东西。

Neverless i had a similar issue maybe this helps somebody:从来没有,我有一个类似的问题,也许这对某人有帮助:

With no errors in log in xcode , just an empty screen on IOS physical and emulator device.登录 xcode 没有错误,只是 IOS 物理和模拟器设备上的一个空白屏幕。 For Android, Browser (Safari, etc), ionic live reload on physical device it worked.对于 Android,浏览器(Safari 等),它可以在物理设备上进行离子实时重新加载。

My issue is related to Angular fire AuthGuard which seems not to be working as expected for IOS 16.1.我的问题与Angular fire AuthGuard有关,它似乎无法按预期为 IOS 16.1 工作。 After deleting the AuthGuard in App Routing Module , my screens where getting loaded - currently trying to figure out what was wrong.删除App Routing Module的 AuthGuard后,我的屏幕开始加载 - 目前正在尝试找出问题所在。

This is more a hint for people, maybe to check if they have same issue这更多是对人们的提示,也许是为了检查他们是否有同样的问题

EDIT编辑

My Issue was related to: https://github.com/angular/angularfire/issues/3087我的问题与: https://github.com/angular/angularfire/issues/3087有关

Using dependencies provided by DeezCashews in Issue saved my day使用 DeezCashews 在 Issue 中提供的依赖项挽救了我的一天

"@angular/fire": "^7.2.0",
"firebase": "^9.6.4",
"rxfire": "^6.0.3"

Seems there is an issue with Angular Fire and ionic capacitor.似乎 Angular 火灾和离子电容器有问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM