cordova-plugin-opentokjs
cordova-plugin-opentokjs copied to clipboard
iOS camera and microphone permissions management
Currently, trying to initialize a Publisher with audio/video enabled but while the user has permission denied, the application crashes.
We should aim to gracefully handle such situations with the publisher events: 'accessAllowed', 'accessDenied', 'accessDialogOpened', 'accessDialogClosed'.
Is there a way to detect that the permissions have been denied from Cordova's JS environment?
If this is related to the cordova-plugin-iosrtc, this issue is fixed since version 2.0.1.
Regarding the detection of permissions, I am not sure if this is possible in Cordova. You could try to look into the errorCallback on getUserMedia, maybe this error object gives you some input. For example use rtcninja