-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Android 14] Crash Exception - RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED is required #670
Comments
👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out! |
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. |
Hi @MateoParodi, we just released new versions of our SDKs including the fix in Google's billing library. Can you try version 6.2.1 of our react native SDK and let us know the results? |
Nice! Thanks for the catch up! We are currently using "react-native-purchases": "^5.13.2" so, if I bump to v6 Im forced to do the migration to the |
Hi @MateoParodi, Unfortunately, we can't release a v5 patch release with this change, since Google only released the fix with billing client 5 and 6, but not with 4, which is what RN v5 is pointing to. v6 of the RN SDK does introduce support for the new Google subscription model. This means that you will start seeing non-backwards compatible products (if you have any) once you migrate. Having said that, if all the products you're using in the Play console are backwards compatible, you should need minimal to no changes. In any case, please let us know if you run into issues during this migration and we would be happy to help! |
Hello again @tonidero, Lucky for us, yes, all our products on Google Play are backwards compatible. I updated to v6 and im already seeing that the response from In v5 we were able to get all the packages from the |
Hi again @MateoParodi, A few questions.
|
Alright, I have the answer, looks like now in the v6, in android at least, the introPrice comes only if the Google Account is eligible for it. So that solves my questions. Regarding the crashes, I'll do some testing and checking firebase after the release and I will post here so we can close the issue after. Thank you very much for the support! |
Hello again @tonidero Im doing some tests here in the android emulator and I can see in the
Also, I see that you guys updated the billing library to 5.2.1, but the fix I think is in the 6.0.1 See comment here: https://github.com/android/play-billing-samples/issues/618 |
Hi @MateoParodi, Hmm that's strange... We were able to reproduce the issue and it got fixed after upgrading to Just to confirm, is this exception also coming from the billing client? |
any ideas or help on how can I know if the exception is comming from the billing client? Im not seeing it in my logs |
Are you able to see the full stack trace @MateoParodi? In your original stacktrace, it was clear that the issue was coming from the billing client: Another way to confirm whether this comes from the RevenueCat SDK (more concretely from the billing client we depend on), is to put some breakpoints/prints before/after the SDK is configured and make sure the crash is happening there. |
hI @tonidero, Im pretty sure the crash is still coming from RC. I have the version 6.2.2 and if I comment everything related to Im testing on the emulator Pixel_4_API_34(AVD) - Android 14 with |
Hi @MateoParodi I tried our sample app:
I did run into issues in debug mode, where it was crashing with this stacktrace:
In this case, it would seem that react-native debug systems are crashing in Android 14, but it seems unrelated to RevenueCat. Also, seems like this might be an issue in react native: facebook/react-native#37769 One thought that comes to mind, do you maybe have cached an older version of the SDK? Still trying to figure out if there is something else wrong. |
Hi, @tonidero did you find any fix for this RN issue? |
Hi @ThushalIntervest, I haven't tried it recently, but looks like RN released 0.72.4 last week which seems to have included the fix. Have you tried that out? |
Yes, I upgraded new RN version. still occurred this issue. 😔 |
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. |
@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. |
@ThushalIntervest I also encountered the same problem, how did you solve it? |
Add ContextCompat.registerReceiver( this, mMessageReceiver, filter, ContextCompat.RECEIVER_EXPORTED ) |
@ThushalIntervest I also encountered the same problem, while saving a file to a device how did you solve it? |
这是来自QQ邮箱的假期自动回复邮件。你好,我最近正在休假中,无法亲自回复你的邮件。我将在假期结束后,尽快给你回复。
|
where should we add this line ? |
这是来自QQ邮箱的假期自动回复邮件。你好,我最近正在休假中,无法亲自回复你的邮件。我将在假期结束后,尽快给你回复。
|
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)
The text was updated successfully, but these errors were encountered: