|
| 1 | +<p align="center"> |
| 2 | + <img width="256" height="256" src="demo/assets/inappreview-android.png"> |
| 3 | + |
| 4 | + <img width="256" height="256" src="demo/assets/inappreview-ios.png"> |
| 5 | +</p> |
| 6 | + |
| 7 | +--- |
| 8 | + |
| 9 | +# <img src="addon/icon.png" width="24"> Godot In-app Review Plugin |
| 10 | + |
| 11 | +Godot in-app review plugin provides access to in-app review functionality for Google Play Store on the Android platform and Apple App Store on the iOS platform through a unified GDScript interface. |
| 12 | + |
| 13 | +_This plugin has been moved under the umbrella of [Godot SDK Integrations](https://github.com/godot-sdk-integrations) organization in Github. Previously, the plugin was placed under three separate repositories: [Android](https://github.com/cengiz-pz/godot-android-inapp-review-plugin), [iOS](https://github.com/cengiz-pz/godot-ios-inapp-review-plugin), and [addon interface](https://github.com/cengiz-pz/godot-inapp-review-addon)._ |
| 14 | + |
| 15 | +<br/> |
| 16 | + |
| 17 | +## <img src="addon/icon.png" width="20"> Installation |
| 18 | +_Before installing this plugin, make sure to uninstall any previous versions of the same plugin._ |
| 19 | + |
| 20 | +_If installing both Android and iOS versions of the plugin in the same project, then make sure that both versions use the same addon interface version._ |
| 21 | + |
| 22 | +There are 2 ways to install this plugin into your project: |
| 23 | +- Through the Godot Editor's AssetLib |
| 24 | +- Manually by downloading archives from Github |
| 25 | + |
| 26 | +### <img src="addon/icon.png" width="18"> Installing via AssetLib |
| 27 | +Steps: |
| 28 | +- search for and select the `In-app Review` plugin in Godot Editor |
| 29 | +- click `Download` button |
| 30 | +- on the installation dialog... |
| 31 | + - keep `Change Install Folder` setting pointing to your project's root directory |
| 32 | + - keep `Ignore asset root` checkbox checked |
| 33 | + - click `Install` button |
| 34 | +- enable the plugin via the `Plugins` tab of `Project->Project Settings...` menu, in the Godot Editor |
| 35 | + |
| 36 | +#### <img src="addon/icon.png" width="16"> Installing both Android and iOS versions of the plugin in the same project |
| 37 | +When installing via AssetLib, the installer may display a warning that states "_[x number of]_ files conflict with your project and won't be installed." You can ignore this warning since both versions use the same addon code. |
| 38 | + |
| 39 | +### <img src="addon/icon.png" width="18"> Installing manually |
| 40 | +Steps: |
| 41 | +- download release archive from Github |
| 42 | +- unzip the release archive |
| 43 | +- copy to your Godot project's root directory |
| 44 | +- enable the plugin via the `Plugins` tab of `Project->Project Settings...` menu, in the Godot Editor |
| 45 | + |
| 46 | +## <img src="addon/icon.png" width="20"> Usage |
| 47 | +Add an `InappReview` node to your scene and follow the following steps: |
| 48 | +- register listeners for the following signals emitted from the `InappReview` node |
| 49 | + - `review_info_generated` |
| 50 | + - `review_info_generation_failed` |
| 51 | + - `review_flow_launched` |
| 52 | + - `review_flow_launch_failed` |
| 53 | +- call the `generate_review_info()` method of the `InappReview` node |
| 54 | +- when the `review_info_generated` signal is received, call the `launch_review_flow()` of the `InappReview` node |
| 55 | + - Google Play Store API will display a dialog |
| 56 | + - Dialog may not be displayed if the review flow was launched recently |
| 57 | +- normal app functionality can resume when `review_flow_launched` signal is received |
| 58 | + |
| 59 | +## <img src="addon/icon.png" width="20"> Demo |
| 60 | +The demo app's only purpose is to provide sample code. Since the demo app is not registered with the Google Play store, the Google Play in-app review dialog will not be displayed. |
| 61 | + |
| 62 | +<br/><br/> |
| 63 | + |
| 64 | +--- |
| 65 | + |
| 66 | +# <img src="addon/icon.png" width="24"> Android In-app Review Plugin |
| 67 | + |
| 68 | +<p align="center"> |
| 69 | + <img width="256" height="256" src="demo/assets/inappreview-android.png"> |
| 70 | +</p> |
| 71 | + |
| 72 | + |
| 73 | +## [Android-specific Documentation](android/README.md) |
| 74 | +## [AssetLib Entry](https://godotengine.org/asset-library/asset/2549) |
| 75 | + |
| 76 | +<br/><br/> |
| 77 | + |
| 78 | +--- |
| 79 | + |
| 80 | +# <img src="addon/icon.png" width="24"> iOS In-app Review Plugin |
| 81 | + |
| 82 | +<p align="center"> |
| 83 | + <img width="256" height="256" src="demo/assets/inappreview-ios.png"> |
| 84 | +</p> |
| 85 | + |
| 86 | +## [iOS-specific Documentation](ios/README.md) |
| 87 | +## [AssetLib Entry](https://godotengine.org/asset-library/asset/2906) |
| 88 | + |
| 89 | +<br/><br/> |
| 90 | + |
| 91 | +--- |
| 92 | +# <img src="addon/icon.png" width="24"> All Plugins |
| 93 | + |
| 94 | +| Plugin | Android | iOS | |
| 95 | +| :--- | :---: | :---: | |
| 96 | +| [Notification Scheduler](https://github.com/godot-sdk-integrations/godot-notification-scheduler) | ✅ | ✅ | |
| 97 | +| [Admob](https://github.com/godot-sdk-integrations/godot-admob) | ✅ | ✅ | |
| 98 | +| [Deeplink](https://github.com/godot-sdk-integrations/godot-deeplink) | ✅ | ✅ | |
| 99 | +| [Share](https://github.com/godot-sdk-integrations/godot-share) | ✅ | ✅ | |
| 100 | +| [In-App Review](https://github.com/godot-sdk-integrations/godot-inapp-review) | ✅ | ✅ | |
| 101 | + |
| 102 | +<br/><br/> |
| 103 | + |
| 104 | +--- |
| 105 | +# <img src="addon/icon.png" width="24"> Credits |
| 106 | + |
| 107 | +Developed by [Cengiz](https://github.com/cengiz-pz) |
| 108 | + |
| 109 | +iOS part is based on [DrMoriarty](https://github.com/DrMoriarty)'s [Godot iOS Plugin Template](https://github.com/DrMoriarty/godot_ios_plugin_template) |
| 110 | + |
| 111 | +Original repository: [Godot In-app Review Plugin](godot-sdk-integrations/godot-inapp-review) |
0 commit comments