react-native-purchases: [Android 14] Crash Exception - RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED is required
Hello everyone!
Since last week, we updated our android sdk to 34, to support Android 14, and we are getting some crashes on firebase:
Fatal Exception: java.lang.SecurityException: com.my-test-app.app: One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts at android.os.Parcel.createExceptionOrNull(Parcel.java:3057) at android.os.Parcel.createException(Parcel.java:3041) at android.os.Parcel.readException(Parcel.java:3024) at android.os.Parcel.readException(Parcel.java:2966) at android.app.IActivityManager$Stub$Proxy.registerReceiverWithFeature(IActivityManager.java:5668) at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1852) at android.app.ContextImpl.registerReceiver(ContextImpl.java:1792) at android.app.ContextImpl.registerReceiver(ContextImpl.java:1780) at android.content.ContextWrapper.registerReceiver(ContextWrapper.java:755) at com.android.billingclient.api.zzh.zzc(com.android.billingclient:billing@@4.1.0:1) at com.android.billingclient.api.zzi.zze(com.android.billingclient:billing@@4.1.0:1) at com.android.billingclient.api.BillingClientImpl.startConnection(com.android.billingclient:billing@@4.1.0:36) at com.revenuecat.purchases.google.BillingWrapper.startConnection(BillingWrapper.kt:120) at com.revenuecat.purchases.google.BillingWrapper.startConnectionOnMainThread$lambda-3(BillingWrapper.kt:106) at com.revenuecat.purchases.google.BillingWrapper.$r8$lambda$hLiSTu2HCHKyRrb-HVFlJFdt_lQ() at com.revenuecat.purchases.google.BillingWrapper$$ExternalSyntheticLambda9.run(:2) at android.os.Handler.handleCallback(Handler.java:958) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:205) at android.os.Looper.loop(Looper.java:294) at android.app.ActivityThread.main(ActivityThread.java:8176) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)
Any ideas on what could be happening? (usefull link maybe)
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 24 (10 by maintainers)
@tonidero I just figured this happen because I used react-native-blob-util library. They did not add a fix for that. Sorry for my misunderstood.
I suggest asking in the RN issue then (I see you already did). I will retry this myself when I have time but this issue doesn’t seem related to RevenueCat. I’m going to close this issue since the original issue seems to have been fixed.
Hi @MateoParodi, thanks for reaching out!
Yes, we’re able to reproduce this issue, this is a known issue in the billing library from Google: https://github.com/android/play-billing-samples/issues/618.
As it says in that issue, Google released an update last week that fixes the issue. We are going to update our libraries to include that fix, so expect a new release very soon. We will update this issue once the SDK has been updated to that billing library version.