Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/LuisRodriguezLD/Fuse-RequestReview
Request a review without leaving the app in Fuse
https://github.com/LuisRodriguezLD/Fuse-RequestReview
Last synced: about 2 months ago
JSON representation
Request a review without leaving the app in Fuse
- Host: GitHub
- URL: https://github.com/LuisRodriguezLD/Fuse-RequestReview
- Owner: LuisRodriguezLD
- Created: 2017-10-03T21:09:04.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-06T23:30:14.000Z (almost 7 years ago)
- Last Synced: 2024-08-03T04:09:20.267Z (5 months ago)
- Language: Uno
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-fuse - Fuse Review - Get reviews from your users without making them leave the app. (Open Source)
README
Fuse-RequestReview
===================What is this?
-------------
Request a review from your users without leaving the app.
Exposes Apple's [requestReview()](https://developer.apple.com/documentation/storekit/skstorereviewcontroller/2851536-requestreview).
Written in Swift and implemented using Foreign code.How do I use it?
----------
```JavaScript
var Environment = require("FuseJS/Environment");
var Review = require("ReviewModule");
```
`requestReview()` only works for iOS 10.3 or greater so we need to parse the systemVersion.
```JavaScript
var OS = parseFloat(Environment.mobileOSVersion);
```
After that just check the OS and go
```JavaScript
if(Environment.ios && OS >= 10.3){ Review.requestReview() };
```Image
----------
![alt text](http://luisrodriguez.ws/github/review_image.png "It's working!!")> **Important Notes:**
> - iOS 10.3 or greater required.
> - While developing `requestReview()` will *always* work, however, when you release the app this _will_ change. The function will only fire if the user has spent some time in the app. You can't just fire it at start, that won't work.
> - This *does not* work while distribuiting through Testflight.
> - More tips on how to use [here](https://www.behradbagheri.com/boringb-tutorials/2017/4/a-proper-way-to-request-review-using-skstorereviewcontroller-in-ios-103-and-higher)