This is a Android plugin for Godot Engine 3.4 or higher.
This plugin supports:
- Request review
- Launch review
- Configure, install and enable the "Android Custom Template" for your project, just follow the official documentation;
- go to the
release tab
, choose a version and download the respective package; - extract the package and put
GodotGooglePlayInAppReview.gdap
andGodotGooglePlayInAppReview.x.y.z.release.aar
inside theres://android/plugins
directory on your Godot project. - on the Project -> Export... -> Android -> Options ->
- Custom Template: check the Use Custom Build
- Plugins: check the Godot # Godot Google Play In App Review (this plugin)
# Example of using
if Engine.has_singleton("GodotGooglePlayInAppReview"):
var in_app_review = Engine.get_singleton("GodotGooglePlayInAppReview")
in_app_review.connect("on_request_review_success", self, "_on_request_review_success")
in_app_review.connect("on_request_review_failed", self, "_on_request_review_failed")
in_app_review.connect("on_launch_review_flow_success", self, "_on_launch_review_flow_success")
# Request Review Info
requestReviewInfo()
# Launch review with GUI
launchReviewFlow()
# Review Info was received
on_request_review_success
# Review Info was not received or another error was received
on_request_review_failed
# Review Flow was finished
on_launch_review_flow_success
If you want to compile the plugin by yourself, it's very easy:
- clone this repository;
- checkout the desired version;
- open
godot-google-play-inapp-review
directory inAndroid Studio
- don't forget to put
godot-lib.release.aar
togodot-lib.release
directory
If everything goes fine, you'll find the .aar
files at godot-google-play-inapp-review/godot-inappreview/build/outputs/aar/
.
-
First of all, please make sure you're able to compile the custom build for Android without plugin, this way we can isolate the cause of the issue.
-
Using logcat for Android is the best way to troubleshoot most issues. You can filter Godot only messages with logcat using the command:
adb logcat -s godot
Google Developers:
MIT license