https://github.com/geri-borbas/unity.library.eppz.rate
App Store rate mechanisms native iOS plugin for Unity.
https://github.com/geri-borbas/unity.library.eppz.rate
Last synced: 5 days ago
JSON representation
App Store rate mechanisms native iOS plugin for Unity.
- Host: GitHub
- URL: https://github.com/geri-borbas/unity.library.eppz.rate
- Owner: Geri-Borbas
- License: other
- Created: 2018-01-16T23:29:13.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-25T12:39:20.000Z (about 7 years ago)
- Last Synced: 2025-03-29T15:34:41.234Z (29 days ago)
- Language: C#
- Homepage:
- Size: 11.7 KB
- Stars: 8
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# eppz.Rate [](https://travis-ci.org/eppz/Unity.Test.eppz)
> part of [**Unity.Library.eppz**](https://github.com/eppz/Unity.Library.eppz)⭐ App Store rate mechanisms native iOS plugin for Unity.
## Simple usage
```csharp
// iOS 10.3+ `SKStoreReviewController` API.
Rate.RequestReviewIfAppropriate();// Opens App Store (can be hooked to buttons).
Rate.OpenAppStoreRatingPage();
```> The plugin works with iOS 7.0. 8.0, 9.0, 10.0 and 11.0.
## Detect TestFlight runtime environment
This plugin also hold a simple test to **determine if the build is running in a TestFlight runtime**. It actually lookup the string `sandboxReceipt` in [`[NSBundle appStoreReceiptURL]`](https://developer.apple.com/documentation/foundation/nsbundle/1407276-appstorereceipturl). This means that it returns true in every sandbox environment including develoment / simulator builds as well. Most probably you'll use this for tagging your analytics.
```
bool isTestFlightBuild = Rate.IsSandboxEnvironment();
```> While this plugin is still called `Rate`, later on it is gonna be renamed to something that better reflects its content. It seems this will be a collection of native one-liners, or similar.
## License
> Licensed under the [MIT license](http://en.wikipedia.org/wiki/MIT_License).