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

Error: Failed to bind to the service. #116

Open
ch3tan03 opened this issue May 13, 2022 · 22 comments
Open

Error: Failed to bind to the service. #116

ch3tan03 opened this issue May 13, 2022 · 22 comments

Comments

@ch3tan03
Copy link

ch3tan03 commented May 13, 2022

Unable to invoke in-app review. getting Error: Failed to bind to the service. any help would be appreciated.

@MinaSamir11
Copy link
Owner

Can you please put your working environment

@ch3tan03
Copy link
Author

ch3tan03 commented May 16, 2022

getting this error for the android app.
"react-native": "0.63.3"

@AndrewKirkovski
Copy link

same for "react-native": "0.68.2"

@elinahovakimyan
Copy link

Getting same error with "react-native": "0.67.3" and "react-native-in-app-review": "^4.1.1"

@elinahovakimyan
Copy link

I figured out this is working on a real device with only @gmail.com account and it should be the only account. It is mentioned in the docs as well.

@ch3tan03
Copy link
Author

ch3tan03 commented Aug 1, 2022

I figured out this is working on a real device with only @gmail.com account and it should be the only account. It is mentioned in the docs as well.

I have tried on a real device as well with a closed internal testing group. still, I'm getting the same error.

@MinaSamir11
Copy link
Owner

I figured out this is working on a real device with only @gmail.com account and it should be the only account. It is mentioned in the docs as well.

I have tried on a real device as well with a closed internal testing group. still, I'm getting the same error.

How do you log the error if you already followed the doc instructions!?
logging error maybe you are still in development mode

@MinaSamir11
Copy link
Owner

MinaSamir11 commented Aug 1, 2022

did you build new release after integration our package. and upload bundle on internal testing or production .!

@ch3tan03
Copy link
Author

ch3tan03 commented Aug 1, 2022

Yes of course it's a release build which I upload in an internal testing group for testing purpose. my build is not open for public access as its still in pilot testing phase.

@MinaSamir11
Copy link
Owner

MinaSamir11 commented Aug 1, 2022

Can you please show me how do you log error or screenshot of it !

@ch3tan03
Copy link
Author

ch3tan03 commented Aug 18, 2022

@MinaSamir11 Sorry for the delay, I was traveling. see the below release build adb logs

08-18 15:44:03.525 11136 11260 I PlayCore: UID: [10149] PID: [11136] ReviewService : Initiate binding to the service.
08-18 15:44:03.526 520 3046 W ActivityManager: Unable to start service Intent { act=com.google.android.finsky.BIND_IN_APP_REVIEW_SERVICE pkg=com.android.vending } U=0: not found
08-18 15:44:03.526 11136 11260 I PlayCore: UID: [10149] PID: [11136] ReviewService : Failed to bind to the service.

@ilyavf
Copy link

ilyavf commented Oct 18, 2022

Same issue. Running in Internal Testing. React Native bare workflow. Env:

"react-native": "0.64.3",
"react-native-in-app-review": "^4.1.1",

The exception is captured and reported with Sentry:

import InAppReview from 'react-native-in-app-review'
...
InAppReview.RequestInAppReview().then(...).catch(e => {
   // captured and reported to Sentry here.
});

Error: Failed to bind to the service.
{
  arguments: [
    {
      nativeStackAndroid: [
        {
          lineNumber: 77,
          file: 'AppReviewModule.java',
          methodName: 'lambda$show$1$AppReviewModule',
          class: 'com.ibits.react_native_in_app_review.AppReviewModule',
        },
        {
          lineNumber: 4,
          file: null,
          methodName: 'onComplete',
          class: 'com.ibits.react_native_in_app_review.-$$Lambda$AppReviewModule$hECUHwdnIN2K-eObeUQcvk07zHA',
        },
        { lineNumber: 23, file: null, methodName: 'run', class: 'com.google.android.play.core.tasks.a' },
        { lineNumber: 938, file: 'Handler.java', methodName: 'handleCallback', class: 'android.os.Handler' },
        { lineNumber: 99, file: 'Handler.java', methodName: 'dispatchMessage', class: 'android.os.Handler' },
        { lineNumber: 226, file: 'Looper.java', methodName: 'loopOnce', class: 'android.os.Looper' },
        { lineNumber: 313, file: 'Looper.java', methodName: 'loop', class: 'android.os.Looper' },
        { lineNumber: 8669, file: 'ActivityThread.java', methodName: 'main', class: 'android.app.ActivityThread' },
        { lineNumber: -2, file: 'Method.java', methodName: 'invoke', class: 'java.lang.reflect.Method' },
        {
          lineNumber: 571,
          file: 'RuntimeInit.java',
          methodName: 'run',
          class: 'com.android.internal.os.RuntimeInit$MethodAndArgsCaller',
        },
        { lineNumber: 1135, file: 'ZygoteInit.java', methodName: 'main', class: 'com.android.internal.os.ZygoteInit' },
      ],
      userInfo: null,
      message: 'Failed to bind to the service.',
      code: '23',
    },
  ],
  logger: console,
}

@AviKokare
Copy link

You can test this feature on a real device, with a Gmail account. Working good !

@jenipharachel
Copy link

@MinaSamir11 Is it possible to test if the in-app review popup is working or not, in development for android? I can see it shown in iOS, though I was not able to submit any ratings. But in android, it is not shown.

@AviKokare
Copy link

U can make an APK of ur app and install it on any compatible physical device. There some policies associated with the app review, please go through it.

@jenipharachel
Copy link

jenipharachel commented Mar 9, 2023

@AviKokare I tried that and used a proper gmail email ID to log into the app. But I was not able to see it. I was under the impression that I would be able to see it in development mode. Since in release mode, you would be able to see it only once a month.

@AviKokare
Copy link

AviKokare commented Mar 9, 2023

If your, Quotas are exceeded then please try with another Gmail account. That may help u. It was also new to me. Yesterday I the first time I worked on this. It worked for me after installing it on a physical device.

@jenipharachel
Copy link

Thank you! It didn't work with an APK but worked with internal beta

@AviKokare
Copy link

@jenipharachel If it is working, then rating pop will appear once. If you want to reopen that popup then, delete the ratings from the playstore, clear the cache of playstore from the mobile setting -> apps -> manage app/application -> play store and clear the cache. U can do this process multiple time for the testing.

@jenipharachel
Copy link

@AviKokare Thank you so much! I'll keep that in mind during testing

@samimzafar
Copy link

replace emulator with physical, i mean run app to install via physical device instead of emulator. then android will works expectedly. and generate apk from react native and install it on physical device.
but your device must have gmail account to test your app for review

@ThoaiBuiMCV
Copy link

I has create patch package for that,
react-native-in-app-review+4.3.3.patch

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

10 participants