radarlabs / react-native-radar

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

locationPermissionStatus not defined in RNRadar.m & throws error #340

Closed mattshapiro closed 2 months ago

mattshapiro commented 2 months ago

Summary

After updating to Expo 50 & React Native 0.73 (from 0.72) we began receiving a runtime error from the Radar library when interacting with the native location permissions dialog. Error states "'locationPermissionStatus' is not a supported event type for RNRadar..." (see screenshot). When I add "locationPermissionStatus" to supportedEvents() in RNRadar.m inside the react-native-radar dependency, the error goes away.

Code to reproduce

After first launch, I believe on the call to Radar.initialize({key}), a native location permission dialog is shown.

Steps to reproduce

Wait for location permissions screen on first launch & select an option. Notice the error.

OS version

iOS 17.2 (iPhone 15)

SDK installation method

yarn add

SDK version

Originally 3.7.4 - tried with 3.12.3

Other information

Screenshot:

Screenshot 2024-07-10 at 11 24 49 AM
lmeier commented 2 months ago

Thanks for reporting @mattshapiro — we'll take a look this afternoon.

KennyHuRadar commented 2 months ago

Hey @mattshapiro , this issue should be resolved in our most recent 3.13.0 release :)

KennyHuRadar commented 2 months ago

Closing as completed