breautek commented on issue #502: navigator.camera is undefined with wkwebview URL: https://github.com/apache/cordova-plugin-camera/issues/502#issuecomment-603267538 > However the deviceready event is not fired neither in my main app nor in the from scratch test app. I think both problems are related. Definitely related. `deviceready` tells you when the plugin apis are ready to be used. If it's not firing there is some other issue going on preventing the init process from completing. First I would ensure that the `cordova.js` file is being loaded in. You should have a `<script type="text/javascript" src="cordova.js"></script>` in your html file. The cordova.js file is provided behind the scenes. You can verify that this file is being loaded in successful by using the safari remote inspector, then refreshing the app webview (cmd+r while the inspector is in focus). Then look at the network tab for the javascript files being loaded in. After you confirm the `cordova.js` file is being loaded in successfully, then in my experience, this is usually something on the native side. You may need to run the app with Xcode so that you can attach the xcode debugger to see the native console logs to get more insight of what might be happening.
---------------------------------------------------------------- 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