radarlabs / react-native-radar

React Native module for Radar, the leading geofencing and location tracking platform
https://radar.com
Apache License 2.0
170 stars 32 forks source link

Checking for "Always Allow" location permission in iOS #18

Closed narin closed 4 years ago

narin commented 6 years ago

I recently integrated Radar into my app and it's been working great. My app only needs background tracking, so it is important that I be able to check if the user chose "Always Allow" in their iOS permissions.

From what I can tell, the getPermissionsStatus() method will return 'GRANTED' regardless of whether the user chose Always Allow, or Allow Only When Using.

Is it possible to make this more detailed so that we can determine what level of permissions the user has granted?

RodrigoCS commented 6 years ago

39

nickpatrick commented 4 years ago

Hi, https://github.com/radarlabs/react-native-radar/releases/tag/3.0.0 adds GRANTED_FOREGROUND and GRANTED_BACKGROUND permission statuses.