Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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)