I’m trying to deploy my application to iOS but I keep getting stuck when building to iOS and running the app in Xcode.
I run ionic cap build ios, sync ios, open ios, that’s ok. Sometimes I get the DerivedData folder issues, that’s ok. When everything is sorted, and I run the app, that’s when I have issues.
If I run it on an emulator, most of the time, I just get a blank screen. The app itself doesn’t really load. It opens, but it doesn’t load.
If I run it on my 11 Pro Max, the app launches but just shows a black screen. If I close it and open it again, sometimes it loads, but then I can’t get past login. I can register a new account, I can get a forgotten password email, but when I enter my details and press login, nothing happens. At the minute, the app won’t even load. Just a black screen.
I always get this error:
WebView loaded
------ STARTUP JS ERROR ------
TypeError: undefined is not an object (evaluating ‘navigator.serviceWorker.addEventListener’)
URL: capacitor://localhost/assets/index-Dks_jw_K.js
index-Dks_jw_K.js:510:814
See above for help with debugging blank-screen issues
[error] - {}
But can’t really grasp what it wants me to do.
I’ve added all the relevant Firebase configuration, and the GoogleService plist file.