MinaSamir11 / react-native-in-app-review

The Google Play In-App Review API, App store rating API lets you prompt users to submit Play Store or App store ratings and reviews without the inconvenience of leaving your app or game.
MIT License
648 stars 58 forks source link

in-app review card not showing in android both debug and release mode #67

Closed Einere closed 2 years ago

Einere commented 2 years ago

environment

react-native: 0.63.2 react-native-in-app-review: ^3.2.2

description

first, i didn't write feedback for my app at play store.

i have installed this package and test if it show in-app review card.

<Button title="foo" onPress={() => {
  InAppReview.RequestInAppReview()
    .then((result) => console.log('in app review finished', result))
    .catch((e) => { ... ));
}} />

then just logging in app review finished true and not show in-app review card (InAppReview.isAvailable() returns true)

so, i did below steps

  1. in Google play store, remove cooperation account, add personal account, log in with it.
  2. update test device at settings. (so google play store is latest version)
  3. remove installed my apps (both debug and release mode)
  4. build and run app with react-native start, react-native run-android
  5. it still not show in-app review card

but still not working.. 🥲 i want to check with new basic project. so, i create new project by npx reaact-native init

  1. install package
  2. call InAppReview.RequestInAppReview() with Button
  3. build and run app with react-native start, react-native run-android
  4. in android, not showing
  5. but in ios, it showing

i think it related with google or play store, but i don't know why. and i didn't test app by test track in google play console.

Einere commented 2 years ago

i found that testing app must download by google play store, so i deploy the app by beta test deployment in google play console after i add personal account to tester list by play console, download with added account in play store. and run installed test app, trigger API, it still no show card. and logcat show some error

I PlayCore: UID: [10337]  PID: [27590] ReviewService : Initiate binding to the service.
I PlayCore: UID: [10337]  PID: [27590] ReviewService : ServiceConnectionImpl.onServiceConnected(ComponentInfo{com.android.vending/com.google.android.finsky.inappreviewservice.InAppReviewService})
I PlayCore: UID: [10337]  PID: [27590] ReviewService : linkToDeath
I PlayCore: UID: [10337]  PID: [27590] OnRequestInstallCallback : onGetLaunchReviewFlowInfo
I PlayCore: UID: [10337]  PID: [27590] ReviewService : Unbind from service.

E/Volley: [1195] duh.a: Unexpected response code 404 for https://play-fe.googleapis.com/fdfe/allowInAppReview?doc=MY_APP_ID

maybe google api 404 is cause of not showing card error... 🤔

Einere commented 2 years ago

I finally did showing review card.

  1. bundle app with .aab and make new test track
  2. add personal email account to tester
  3. after app bundle is published at google play store, download it by test link with company account (if personal account, app name will be just app name. but if company account, it show (beta) at the end of app name)
  4. if you install beta app, change google play store account to personal account.
  5. clear google play store local data by Settings - Apps
  6. run installed app, and trigger in-app review API
  7. done! 🎉