react-native-in-app-review: App crashes if google play store is not installed
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
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 16 (8 by maintainers)
@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. https://github.com/felipecespedes/react-native-in-app-review/commit/249ecfcc21bbafed4e25591e035ce4dab25a2e39
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…