One powerful use of in-app messages is to increase App Store reviews from users who enjoy using your app, while simultaneously reducing friction.
App Store Review Prompt Example
addTrigger
method to programmatically display the message, but we will also show a way to do this without code.Add Action ID for Review Button
ask_for_review
with a value of show
. The actual key and value doesnβt need to be these exact things, but needs to match what you set in the addTrigger
method.
For Example: OneSignal.InAppMessages.addTrigger("ask_for_review", "show");
Example shows the same key-value used in the addTrigger method.
No-code option
https://play.google.com/store/apps/details?id=<package_name>
https://apps.apple.com/app/id<#Your App Store ID#>?action=write-review
Code-required option
InAppMessages.addClickListener
method, you can listen for when the message is clicked and handle it differently based on the action ID
set above.Within this listener method, you can then programmatically call the iOS or Android options to present the app store review modal.These settings will show the in-app up to 40 times total spaced out 17 weeks apart. Increase the amount of times if you want to ask more than 40 times total.