Capacitor plugin for ios to request review
- incrementCount
- requestReview
- requestReviewManually
All samples for vue.js but can be used anywere
incrementCount() method counts user actions till 5 (hardcoded) and on 5'th action will show review dialog. Counter resets after each version update
import { Plugins } from "@capacitor/core";
export default {
methods: {
myAction(){
Plugins.RequestReview.incrementCount()
}
}
}
requestReview() shows review dialog imediatelly. Only once for each version otherwise returns error
import { Plugins } from "@capacitor/core";
export default {
methods: {
rateUs(){
Plugins.RequestReview.requestReview().catch(err=>{console.log(err)})
}
}
}
requestReviewManually({appId: 123456789}) opens app store write review form
import { Plugins } from "@capacitor/core";
export default {
methods: {
writeReview(){
Plugins.RequestReview.requestReviewManually({appId: 123456789}).catch(err=>{console.log(err)})
}
}
}