Comments (16)
@MinaSamir11 Since this error is at the Java level then the JS try-catch block won't help too much, I tested it and the app was still crashing.
I did a lazy patch on my own fork, it's just some try-catch blocks, I left some TODO notes on it for a more elegant solution in the future though.
felipecespedes@249ecfc
from react-native-in-app-review.
When calling the
InAppReview.RequestInAppReview()
method then the app is crashing if the Google Play Store is not installed.Google play store is a required dependency as listed in the In-App Review official documentation
Android devices (phones and tablets) running Android 5.0 (API level 21) or higher that have the Google Play Store installed.
Platform: Android
Thank you @felipecespedes , I solve bug without try{}catch{}, now we check if play store installed or not and show in app review if play store exist in user device, install new update and check it out..
from react-native-in-app-review.
@MinaSamir11 when can you update this package for fixing this issue ?
@fevzican update live now, install new package.
from react-native-in-app-review.
If you need, quick sol. You can call method, wrapping it in try {}catch. You will silence error.
So i will work on it to fix crashing app, If user not install dependence.
from react-native-in-app-review.
@MinaSamir11 when can you update this package for fixing this issue ?
from react-native-in-app-review.
@felipecespedes @fevzican i apologize for the pervious version of 2.1.3, i found that is not solved yet. i update package to 2.1.4 for your issue. please notify me if it works or not !
Thank you.
from react-native-in-app-review.
@MinaSamir11 i have tested V2.1.4 and the problem still exist. Also if the Play Store app was disabled the app will crash too
from react-native-in-app-review.
What Android version/API were you testing on? @mToutounjy
from react-native-in-app-review.
@felipecespedes Android 8.1.0 API 26
from react-native-in-app-review.
@felipecespedes Is problem solved for you after update to 2.1.4!! Or still exist!?
from react-native-in-app-review.
@MinaSamir11 i have tested V2.1.4 and the problem still exist. Also if the Play Store app was disabled the app will crash too
If disable, it may crash too. We can resolve it, in next release.
But If playstore is not installed, crash with you too!!
from react-native-in-app-review.
@MinaSamir11 i have tested V2.1.4 and the problem still exist. Also if the Play Store app was disabled the app will crash too
But If playstore is not installed, crash with you too!!
yes
I/ReactNativeJS: RequestInAppReview
I/PlayCore: UID: [10082] PID: [27654] ReviewService : requestInAppReview (xxx.xxx.xxx)
I/PlayCore: UID: [10082] PID: [27654] ReviewService : Initiate binding to the service.
I/PlayCore: UID: [10082] PID: [27654] ReviewService : Failed to bind to the service.
E/isPlayStoreInstalled: true
D/AndroidRuntime: Shutting down VM
E/AndroidRuntime: FATAL EXCEPTION: main
Process: xxx.xxx.xxx, PID: 27654
com.google.android.play.core.tasks.RuntimeExecutionException: com.google.android.play.core.internal.aq: Failed to bind to the service.
at com.google.android.play.core.tasks.m.getResult(Unknown Source:16)
at com.ibits.react_native_in_app_review.AppReviewModule.lambda$show$1$AppReviewModule(AppReviewModule.java:53)
at com.ibits.react_native_in_app_review.-$$Lambda$AppReviewModule$bUmS5pB5E-8STvn0S-VVfLR6ozE.onComplete(Unknown Source:4)
at com.google.android.play.core.tasks.a.run(Unknown Source:23)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
Caused by: com.google.android.play.core.internal.aq: Failed to bind to the service.
at com.google.android.play.core.internal.ap.a(Unknown Source:78)
at com.google.android.play.core.internal.ai.a(Unknown Source:4)
at com.google.android.play.core.internal.ag.run(Unknown Source:0)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:164)
at android.os.HandlerThread.run(HandlerThread.java:65)
Process 27654 terminated.
from react-native-in-app-review.
@mToutounjy I hope new release will solve your issue .
please check it out version 2.1.5. and give me feedback again.
from react-native-in-app-review.
Update this bug solved on @2.1.7
@MinaSamir11 i have tested V2.1.4 and the problem still exist. Also if the Play Store app was disabled the app will crash too
But If playstore is not installed, crash with you too!!
yes
I/ReactNativeJS: RequestInAppReview
I/PlayCore: UID: [10082] PID: [27654] ReviewService : requestInAppReview (xxx.xxx.xxx)
I/PlayCore: UID: [10082] PID: [27654] ReviewService : Initiate binding to the service.
I/PlayCore: UID: [10082] PID: [27654] ReviewService : Failed to bind to the service.
E/isPlayStoreInstalled: true
D/AndroidRuntime: Shutting down VM
E/AndroidRuntime: FATAL EXCEPTION: main
Process: xxx.xxx.xxx, PID: 27654
com.google.android.play.core.tasks.RuntimeExecutionException: com.google.android.play.core.internal.aq: Failed to bind to the service.
at com.google.android.play.core.tasks.m.getResult(Unknown Source:16)
at com.ibits.react_native_in_app_review.AppReviewModule.lambda$show$1$AppReviewModule(AppReviewModule.java:53)
at com.ibits.react_native_in_app_review.-$$Lambda$AppReviewModule$bUmS5pB5E-8STvn0S-VVfLR6ozE.onComplete(Unknown Source:4)
at com.google.android.play.core.tasks.a.run(Unknown Source:23)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
Caused by: com.google.android.play.core.internal.aq: Failed to bind to the service.
at com.google.android.play.core.internal.ap.a(Unknown Source:78)
at com.google.android.play.core.internal.ai.a(Unknown Source:4)
at com.google.android.play.core.internal.ag.run(Unknown Source:0)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:164)
at android.os.HandlerThread.run(HandlerThread.java:65)
Process 27654 terminated.
from react-native-in-app-review.
any solution for this?
from react-native-in-app-review.
i update the latest version and using emulator without play store, there is an error.
is same if i disable the play store.
but is okay because apps not crash.
from react-native-in-app-review.
Related Issues (20)
- when will 4.3.1 be available on npm? HOT 3
- I wonder if there is a limit of time for rating and submitting comment. Can I submit comments over one time? HOT 1
- Android not opening the popup. Shows: [Error: Failed to bind to the service.] HOT 19
- Error: The logging tag can be at most XY characters HOT 5
- Gradle sync fails on 4.3.2 HOT 3
- how do we unable button sent rate app
- Why the "Submit" button is disabled in iOS? HOT 5
- Can you see how many stars were given in the following then block? HOT 2
- Problem: InAppReviewModule.show cannot be invoked on Android
- fail to build android app:checkDebugDuplicateClasses HOT 7
- Android working intermittently HOT 1
- I submitted the rating and review from in app review popup. After that I removed the review from google play store. After that the popup is not opening in the mobile again asking for review. Is there any way to check and review it again HOT 2
- Not Supported [Error: Failed to bind to the service.] HOT 1
- [React Native] [Android] - No activity found to handle intent act=com.huawei.appmarket.intent.action.guidecomment pkg=com.huawei.appmarket HOT 2
- does this lib need price to use? HOT 2
- [Error: com.google.android.finsky.inappreviewservice.InAppReviewService : Binder has died.]
- Duplicate class com.google.android.play.core.common.IntentSenderForResultStarter found in modules jetified-core-1.9.1-runtime (com.google.android.play:core:1.9.1) and jetified-core-common-2.0.2-runtime HOT 5
- Prompt not showing, prompt conversion rate
- :react-native-in-app-review:compileDebugJavaWithJavac HOT 1
- React Native 0.74 (Bridgeless) Support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-in-app-review.