cordova-plugin-opentokjs icon indicating copy to clipboard operation
cordova-plugin-opentokjs copied to clipboard

iOS camera and microphone permissions management

Open aoberoi opened this issue 9 years ago • 1 comments

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?

aoberoi avatar Jun 23 '15 21:06 aoberoi

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

mark-veenstra avatar Nov 11 '15 07:11 mark-veenstra