native.showPopup( "rateApp", options )

From the docs:

Only the following app stores are supported. A popup window will not be displayed for any other app store.

  • Amazon App Store
  • Google Play
  • iTunes App Store
  • Nook App Store
  • Samsung App Store

Is it possible to force the Google Play if the app store is not recognized ?

Or at least can we in advance know if the store is not supported so not showing the “Rate us” button ?

Would look like a bug if the user taps the “Rate us” button and nothing happens.

The system.getInfo() API call supports returning the app store the app was compiled for:

http://docs.coronalabs.com/api/library/system/getInfo.html#targetappstore

You can use that for some intelligence as to what store you’re building for.  If it’s built for none, you could then use a test to load a URL to that unsupported store’s rating system nor not show the button at all.

Not sure I understand how it works.

There are some good stores that allow links to Google Play (Getjar, SlideMe…) and it would be great if we could “force” the “rateApp” to a store.

Could you explain how do you determine if the store is available on the phone?

E.g. If the user downloads the app from Getjar. What happens when I call native.showPopup(“rateApp”)?

Thank you.

It used to be you could pass all the valid stores you wanted and it would try to figure it out, but today I think it depends on what store you choose when you build the app.  If you choose “Google”, it will try to open the google play store.  It sounds like that’s what you want for getjar and SlideMe.  The device still has to have Google Play app installed.

The system.getInfo() API call supports returning the app store the app was compiled for:

http://docs.coronalabs.com/api/library/system/getInfo.html#targetappstore

You can use that for some intelligence as to what store you’re building for.  If it’s built for none, you could then use a test to load a URL to that unsupported store’s rating system nor not show the button at all.

Not sure I understand how it works.

There are some good stores that allow links to Google Play (Getjar, SlideMe…) and it would be great if we could “force” the “rateApp” to a store.

Could you explain how do you determine if the store is available on the phone?

E.g. If the user downloads the app from Getjar. What happens when I call native.showPopup(“rateApp”)?

Thank you.

It used to be you could pass all the valid stores you wanted and it would try to figure it out, but today I think it depends on what store you choose when you build the app.  If you choose “Google”, it will try to open the google play store.  It sounds like that’s what you want for getjar and SlideMe.  The device still has to have Google Play app installed.