breautek commented on issue #824:
URL:
https://github.com/apache/cordova-plugin-camera/issues/824#issuecomment-1399351283
Plugin APIs may not be initialized immediately, but happens as a part of
loading the `cordova.js` file.
You must wait for the `deviceready` event, which will be fired when all
plugins are ready.
```javascript
document.addEventListener("deviceready", () => {
//navigator.camera can be safely used
});
```
Closing as not a bug.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]