vinnichase commented on issue #502: navigator.camera is undefined with wkwebview URL: https://github.com/apache/cordova-plugin-camera/issues/502#issuecomment-603311323 OK! Finally resolved it. I indeed removed `<script type="text/javascript" src="cordova.js"></script>` from my index.html for the migration to `WKWebView` and completely forgot about it. I had to remove it, because I always got a white screen since I was migrating a relatively big app. Key to resolve the white screen was: ```Bash $ cordova plugin add cordova-plugin-wkwebviewxhrfix ``` Otherwise nothing is loaded in the web view. That I just learned seconds ago. If you still encounter a white screen you have to remove `ios.json` from the plugins folder and remove and readd the ios platform: ```Bash $ cordova platform remove ios $ cordova platform add ios@5.1.1 ``` > 5.1.1 in my case! It is by far not trivial to overlook all possible problems at once while copying over files and starting projects from scratch to isolate problems. Basic things like `cordova.js` can quickly be overseen. So I hope I can help anyone else who might run into similar problems or fighting against themselves stupidly as I did.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org For additional commands, e-mail: commits-h...@cordova.apache.org