Everyone,
We’ve recently added a new API called [lua]native.showPopup(“rateApp”)[/lua] that will display the “Write Review” window for your app from the app store that it was downloaded from. It supports the following app stores:
- iTunes App Store
- Google Play
- Samsung App Store
- Amazon App Store
- Nook App Store
Here is a quick example of how to call this function.
[lua]local settings =
{
iOSAppId = “Your iOS App’s ID”,
nookAppEAN = “Your Nook App’s EAN”,
supportedAndroidStores = { “samsung”, “google”, “amazon”, “nook” },
}
native.showPopup(“rateApp”, settings)[/lua]
You only need to provide an app ID and EAN on iOS and Nook respectively. No additional information is required for Google Play, Amazon, or Samsung app stores since they use your app’s package name as the ID.
The [lua]supportedAndroidStores[/lua] setting is needed in case your app was not installed by an app store (such as via “adb install”), in which case Corona has to guess which app store it belongs to. Corona does this by hunting down all of the app stores installed on the Android device and it picks one of those stores, but only if it is in your supported list.
This new feature will be made available in daily build #907, tomorrow. We’ve also update the documentation for the [lua]native.showPopup()[/lua] function in that daily build’s API docs. [import]uid: 32256 topic_id: 11317 reply_id: 123742[/import]