Skip to content
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 crash] java.lang.SecurityException - Not allowed to bind to service Intent #2838

Open
haozhutw opened this issue Sep 2, 2024 · 0 comments

Comments

@haozhutw
Copy link

haozhutw commented Sep 2, 2024

Please use the Discussion board if you want to get some help. Please use issues to report bugs.

Description

Android app crashes

Expected Behavior

App shouldn't crash

Screenshots

image image

Environment:

  • react-native-iap: 12.15.1
  • react-native: 0.61.5
  • Platforms (iOS, Android, emulator, simulator, device): Android

To Reproduce
Steps to reproduce the behavior:

We cannot reproduce this, this crash is reported by Firebase.


[Optional] Additional Context

crash log:

Fatal Exception: java.lang.SecurityException: Not allowed to bind to service Intent { act=com.android.vending.billing.InAppBillingService.BIND pkg=com.android.vending cmp=com.android.vending/com.google.android.finsky.billing.iab.InAppBillingService (has extras) }
       at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:1838)
       at android.app.ContextImpl.bindService(ContextImpl.java:1749)
       at android.content.ContextWrapper.bindService(ContextWrapper.java:756)
       at com.android.billingclient.api.BillingClientImpl.startConnection(com.android.billingclient:billing@@7.0.0:62)
       at com.dooboolab.rniap.RNIapModule.initConnection(RNIapModule.kt:150)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.facebook.react.bridge.JavaMethodWrapper.invoke(JavaMethodWrapper.java:371)
       at com.facebook.react.bridge.JavaModuleWrapper.invoke(JavaModuleWrapper.java:150)
       at com.facebook.react.bridge.queue.NativeRunnable.run(NativeRunnable.java)
       at android.os.Handler.handleCallback(Handler.java:938)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:26)
       at android.os.Looper.loop(Looper.java:223)
       at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:225)
       at java.lang.Thread.run(Thread.java:923)
        
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant