Skip to content
This repository has been archived by the owner on May 12, 2023. It is now read-only.

Never requested camera permission #61

Closed
felgarte opened this issue Dec 28, 2017 · 6 comments
Closed

Never requested camera permission #61

felgarte opened this issue Dec 28, 2017 · 6 comments
Labels
platform: android type: bug Issues or pull requests that are unexpected behaviour type: help wanted

Comments

@felgarte
Copy link

felgarte commented Dec 28, 2017

I followed all the steps to install the lib and all seems works fine, but when I install the app in a real device, I got never see the camera permission request.

<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.VIBRATE" />

I see "Camera not authorized" in the view.

Any help?

@hllhui
Copy link

hllhui commented Dec 28, 2017

i also met this problem, and i change the index.js line 109:
'this.setState({ isAuthorized: granted === PermissionsAndroid.RESULTS.GRANTED, isAuthorizationChecked: true })'
to
'this.setState({ isAuthorized: granted, isAuthorizationChecked: true })'
then not show 'Camera not authorized' any more

@rizwanahmed19
Copy link

I'm facing the same issue.

@moaazsidat
Copy link
Owner

accepting PRs to fix this, thanks!

@moaazsidat
Copy link
Owner

I've pushed a temp fix for this in 0.0.29, please let me know if it fixes the issue

@afilp
Copy link

afilp commented Jan 7, 2018

@moaazsidat First test, seems to be working! Thanks.

Since this is a temp solution, could it break in some cases? Which ones? (if you know)

@JAISWAL007
Copy link

JAISWAL007 commented Jan 19, 2018

Did this issue is solved ? I'm facing same problem..

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
platform: android type: bug Issues or pull requests that are unexpected behaviour type: help wanted
Projects
None yet
Development

No branches or pull requests

6 participants