hms-react-native-plugin icon indicating copy to clipboard operation
hms-react-native-plugin copied to clipboard

fix: crash on Android 14 due to changed API

Open megaacheyounes opened this issue 1 year ago • 3 comments

Issue details: https://github.com/HMS-Core/hms-react-native-plugin/issues/333

megaacheyounes avatar May 22 '24 05:05 megaacheyounes

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

CMLCNL avatar Jul 12 '24 08:07 CMLCNL

Try replacing RECEIVER_NOT_EXPORTED with Context.RECEIVER_NOT_EXPORTED

megaacheyounes avatar Jul 13 '24 04:07 megaacheyounes

Hi, is there any update regarding this error?

GabrielLim-FastCo avatar Oct 15 '24 03:10 GabrielLim-FastCo

@megaacheyounes is this closed because the fix is released?

GabrielLim-FastCo avatar Nov 06 '24 08:11 GabrielLim-FastCo