React-native-permissions: Cannot obtain location permissions status

Created on 7 Jun 2017  路  8Comments  路  Source: zoontek/react-native-permissions

I am attempting to use this module to obtain the permissions status the user has supplied. When I try calling the function below:

Permissions.getPermissionStatus('location')
      .then(response => {
        this.setState({ locationPermission: response })
      })

After executing this code, I receive the following error:

Cannot read property 'getPermissionStatus' of undefined

Versions I am using on iOS

"react": "16.0.0-alpha.6",
"react-native": "0.44.0",

Could someone guide me? This is a little urgent.

All 8 comments

@yonahforst Could you help me out here?

Please check if every thing is linked properly. Some times, react-native link doesn't work as expected.
Try to do manual linking.

@tarang9211 - were you able to solve this with manual linking?

I have been using manual linking only. Let me try this with another sample project and see what happens. Stay tuned.

+1

+1

It looks like getPermissionStatus has changed to check.

Calling the check method still runs RNPermissions.getPermissionStatus.

I saw this error as well, I fixed it by doing clean and rebuild in xcode.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vvsevolodovich picture vvsevolodovich  路  24Comments

iegik picture iegik  路  19Comments

al-shivani picture al-shivani  路  25Comments

bithavoc picture bithavoc  路  22Comments

tmpapageorgiou picture tmpapageorgiou  路  18Comments