'How to use expo StoreReview.requestReview()
I’m trying to use StoreReview from expo, to ask the user to review the app.
I’m trying to understand how the flow should look like. I probably need some logic to ask for a review after, let’s say a month of usage.
But do I also have to keep track of the fact that the user has seen the ReviewBanner too or after I call the method StoreReview.requestReview();
one time, the SDK will remember and not shown the review banner twice?
And... is it normal that if I lunch the StoreReview.requestReview();
inside the simulator, I'm asked to review the expo simulator?
Solution 1:[1]
Have you reviewed https://docs.expo.io/versions/latest/sdk/storereview ?
Specifically the "Usage" section which refers to the Android and iOS guidelines on how/when to challenge your user.
Expo and these guidelines suggest when is the right time to ask the question, but it is left to the app author to decide when a "significant" event has happened during a relatively restful time of app use and to track that the question isn't presented too often (i.e. wait a month.. only ask once every few weeks, etc.), so yes, you will have to keep track of that on the App.
You should also consider that a user may use the app in multiple devices and perhaps you want to develop a strategy where the store-review suggest is made per user account and not per device.
Solution 2:[2]
doing something like this, worked for me.
the touchableOpacity
<TouchableOpacity onPress={this.handleReview}>
<Text>Click Review</Text>
</TouchableOpacity>
and the call
handleReview = async () => {
if (StoreReview.isAvailableAsync()) {
await StoreReview.requestReview()
.then(function(response){
console.log("response is",response)
})
.catch(e => { console.log(e) })
}
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Atmas |
Solution 2 | ajay komirishetty |