Closed niranjanbprajapati closed 7 years ago
Hi @niranjanbprajapati
Can you show a little more about how are dealing with permissions?
Did put them in AndroidManifest.xml also? The dialog of permission request are prompted?
Are you testing in a real device?
I am testing in real device Nexus 5, also get the dialog of permission access for the first time when the app is installed. I selected Allow in the dialog. I have inserted permission in Manifest file also.
What can i do to help you understand my issue. Please let me know.
@lucasferreira can you please help me out, any idea where i am going wrong, in implementation of this.
Hi @niranjanbprajapati
Did you fix this issue?
I've recommend you to update your React Native install to the latest (next) and try the native PermissionsAndroid implementations http://facebook.github.io/react-native/releases/next/docs/permissionsandroid.html
That can better them mine implementation ;)
I have loaded a url which records sound using mobile microphone. I also had set permission settings which is required by android Marshmallow 6.0 using the https://github.com/lucasferreira/react-native-android-permissions
But when i load the url it gives error on website.
could not get permissions for recording.
Is there any properties i need to set in the webview to provide access for recording, as i have already provided access permissions in android manifest as provided in the above example.
# Update code for permission in the react-native and android :
React-native code
The following code i have inserted on the link click which will open the webiview with the respective import code for permissions component.
Android Code:
In settings.gradle file :
In build.gradle file :
In MainActivity.java File:
If you need any other code. Please let me know.