Balram dangi
Balram dangi

Reputation: 21

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.

Upvotes: 0

Views: 6914

Answers (2)

Ballo Ibrahima
Ballo Ibrahima

Reputation: 627

It solved mine: In capacitor.config.json file, we have an object, we need to change “webDir” default value is “src”

{
    …
    “webDir”: “src”
    …
}

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

Upvotes: -1

FraCore
FraCore

Reputation: 1

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. For Android, Browser (Safari, etc), ionic live reload on physical device it worked.

My issue is related to Angular fire AuthGuard which seems not to be working as expected for IOS 16.1. After deleting the AuthGuard in App Routing Module, my screens where getting loaded - currently trying to figure out what was wrong.

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

Using dependencies provided by DeezCashews in Issue saved my day

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

Seems there is an issue with Angular Fire and ionic capacitor.

Upvotes: 0

Related Questions