Hello everyone,
I recently upgraded my app to WKWebView and since then my native plugins have stopped working. Specifically, the Camera and Geolocation plugin have stopped working. The worst thing is that there are no errors being thrown. I tried console logging every step and apparently, the promise geolocation.getCurrentPosition() is never being resolved.
Also, I’m getting a warning stating my plugins are in an inconsistent state and device ready is not fired within 5000ms.
I tried the following things:
- Uninstalling plugins one by one using ionic cordova plugin rm, now the device ready event is fired after 8 seconds but at least it’s fired.
- Running the app in a browser or an iOS simulator works fine and both the camera and the geolocation work.
- Tried creating a new app and tried to reproduce the bug but it works in the new app.
- Tried removing platform android and adding it again.
My app was working fine before upgrading. I upgraded to WKWebView because one feature wasn’t working on iOS. Ever since I did that my native plugins have stopped working. Is there any way to fix this. I have a git repository and I can rollback this commit but I think the problem is with the files that are in gitignore.