react-native-in-app-review icon indicating copy to clipboard operation
react-native-in-app-review copied to clipboard

Error: Failed to bind to the service.

Open ch3tan03 opened this issue 3 years ago • 22 comments

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

ch3tan03 avatar May 13 '22 08:05 ch3tan03

Can you please put your working environment

MinaSamir11 avatar May 16 '22 01:05 MinaSamir11

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

ch3tan03 avatar May 16 '22 10:05 ch3tan03

same for "react-native": "0.68.2"

AndrewKirkovski avatar Jun 17 '22 06:06 AndrewKirkovski

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

elinahovakimyan avatar Aug 01 '22 10:08 elinahovakimyan

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.

elinahovakimyan avatar Aug 01 '22 13:08 elinahovakimyan

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.

ch3tan03 avatar Aug 01 '22 16:08 ch3tan03

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 avatar Aug 01 '22 19:08 MinaSamir11

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

MinaSamir11 avatar Aug 01 '22 19:08 MinaSamir11

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.

ch3tan03 avatar Aug 01 '22 20:08 ch3tan03

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

MinaSamir11 avatar Aug 01 '22 20:08 MinaSamir11

@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.

ch3tan03 avatar Aug 18 '22 10:08 ch3tan03

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,
}

ilyavf avatar Oct 18 '22 23:10 ilyavf

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

AviKokare avatar Mar 08 '23 11:03 AviKokare

@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.

jenipharachel avatar Mar 09 '23 09:03 jenipharachel

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.

AviKokare avatar Mar 09 '23 09:03 AviKokare

@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.

jenipharachel avatar Mar 09 '23 09:03 jenipharachel

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.

AviKokare avatar Mar 09 '23 10:03 AviKokare

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

jenipharachel avatar Mar 10 '23 07:03 jenipharachel

@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.

AviKokare avatar Mar 10 '23 10:03 AviKokare

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

jenipharachel avatar Mar 10 '23 10:03 jenipharachel

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

samimzafar avatar Sep 18 '23 10:09 samimzafar

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

ThoaiBuiMCV avatar Mar 06 '24 09:03 ThoaiBuiMCV