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

Catch Map element possible permissions error #258

Closed lmeier closed 1 year ago

lmeier commented 1 year ago

The map element requests location for the location indicator, but we can't be sure that we have the necessary permissions.

The react-native-radar sdk doesn't do full permission monitoring, so the safest thing to do is to attempt to get the location and fail gracefully.

I'm presently console.warn-ing, but we probably should replicate the logger used in the js sdk sometime soon.