voximplant / react-native-voximplant

Voximplant mobile SDK for React Native (iOS/Android)
http://voximplant.com
205 stars 39 forks source link

Camera permission on Android #35

Closed skeet closed 6 years ago

skeet commented 6 years ago

Is there any way to disable asking for the camera permission on Android?

We've tried passing false as the first parameter of init() which disables the video but crashes the app as the permission is still required.

I'm building an app that only uses voice and cannot have the camera permission.

Thanks.

YuliaGrigorieva commented 6 years ago

Hello!

VoxImplant.SDK.init() method has only one parameter that is a map: https://github.com/voximplant/react-native-voximplant/blob/8d245e06595ebdfd52554c37698b21421255fb06/index.js#L446-L455

The correct usage is the following:

const options = {
  enableVideo: false,
};
VoxImplant.SDK.init(options);

Please try this way and let us know if the issue is resolved.

Best regards, Yulia Grigorieva

skeet commented 6 years ago

Thank you - this fixed our issue!