hms-react-native-plugin
hms-react-native-plugin copied to clipboard
fix: crash on Android 14 due to changed API
Issue details: https://github.com/HMS-Core/hms-react-native-plugin/issues/333
i implement your pr and i am getting this error. why? can you help? @megaacheyounes
node_modules/@hmscore/react-native-hms-location/android/src/main/java/com/huawei/hms/rn/location/backend/helpers/HMSBroadcastReceiver.java:163: error: cannot find symbol
context.registerReceiver(getInstance(), getIntentFilter(context), RECEIVER_NOT_EXPORTED);
^
symbol: variable RECEIVER_NOT_EXPORTED
location: class HMSBroadcastReceiver
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
3 errors
Try replacing RECEIVER_NOT_EXPORTED with Context.RECEIVER_NOT_EXPORTED
Hi, is there any update regarding this error?
@megaacheyounes is this closed because the fix is released?