Rate This App Link to the Android Market

I am trying to have a graphic link in my Android app that when clicked on it will open up the Android Market to the applications dedicated page so that you can rate the app.

I am currently trying this:
[lua]if (platformOS == “Android” or platformOS == “Win”) then
system.openURL( “http://market.android.com/details?id=com.bluefireventures.butterflyadventures” )
–system.openURL( “http://www.cnn.com” )
else
system.openURL( “http://itunes.apple.com/us/app/butterfly-adventures/id470231539?ls=1&mt=8” )
end[/lua]

with this method. it works perfect on the Apple IOS devices. It opens up in the IOS App Store… not in safari.

for Android I am testing on a Motorola Xoom. When it triggers the open URL request the screen seems to get a alpha=.5 but then… nothing happens. the google browser does not open… Nor does the Android Market app open to the right page.

if i change the open URL for Android to a simple www.cnn.com it opens that URL just fine in the devices google browser. why wont the app url open … even if its int he google browser i would be happy.

anyone know how i Should be doing this?

[resolved sorta] well it seems to be working today its opening the URL in the google browser. I would still like to get it to open in the market app.

I cold rebooted the device and i also upgraded to the newest daily build… i am not sure what version i was trying this on. [import]uid: 67604 topic_id: 19991 reply_id: 319991[/import]

Because it has to look like this, instead of http:// do market://details?id=com.bluefireventures.butterflyadventures

Regards,
Jordan Schuetz
Ninja Pig Studios [import]uid: 29181 topic_id: 19991 reply_id: 77890[/import]

And for iTunnes, do I need some special attention? Or can I use it as showed above like: [lua]system.openURL( “http://itunes.apple.com/us/app/butterfly-adventures/id470231539?ls=1&mt=8” )[/lua]

Btw where do I get the iTunnes URL that links the user to the Rate App into iTunnes?

Thanks,
Rodrigo. [import]uid: 89165 topic_id: 19991 reply_id: 77898[/import]

This is the code I use for both platforms, Still need to add amazon support.
Some credit goes to Jayant Varma as this is adapted from his code.

[lua]local APP_ID = 473537023
local BUNDLE_ID = “com.bradherman.games.puppetshow”

local platform = system.getInfo(“platformName”)

if platform == “iPhone OS” then
ReviewURL = “itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=” … APP_ID
elseif platform == “Android” then
ReviewURL = “market://details?id=”… BUNDLE_ID
else
ReviewURL = “”
end

system.openURL ( ReviewURL )[/lua]
for your app just set the itunes app ID to APP_ID
for android replace my bundle at the top with your bundle on BUNDLE_ID
[import]uid: 110373 topic_id: 19991 reply_id: 77906[/import]

Thanks for the code and insight. I just started looking into this today and knew there had to be a better way. [import]uid: 67604 topic_id: 19991 reply_id: 77910[/import]

@brad.herman - Thank you! I really appreciate your help! :slight_smile:

Btw, do you know what does mean this part of code that is into your snipet code above: [lua]type=Purple+Software&id="[/lua]
Cheers,
Rodrigo. [import]uid: 89165 topic_id: 19991 reply_id: 77920[/import]

@RSCdev

It’s a bit of Apple History. All GUI applications on the iPhone are referred to as Purple apps.
Why? Purple 2 was the iPhone’s development codename. [import]uid: 70847 topic_id: 19991 reply_id: 78084[/import]

On the Amazon documentation it looks like the link for the Amazon store is supposed to be:

http://www.amazon.com/gp/mas/dl/android?p=<packagename><br><br>(where &lt; packagename &gt; is your app package name). <br>

Haven’t tested it yet though.

When I was searching on how to do the iTunes link, in some non-Corona forum a user mentioned that “purple” was the iPhone’s code name during development. Is it true? I have no idea. Either way, it the purple software part is mandatory part of the iTunes link. [import]uid: 94868 topic_id: 19991 reply_id: 78087[/import]

@ingemar & @Screaming Leaf : Thank you!

Nice to be knowing the Apples Legend. ;) BTW, why Purple? Wouldnt it be Yellow or Red? lOl

Cheers guys,
I appreciate these info.
Rodrigo. [import]uid: 89165 topic_id: 19991 reply_id: 78123[/import]

Amazon Review URL example
[lua]ReviewURL = “http://www.amazon.com/gp/mas/dl/android?p=com.bradherman.games.puppetshow
[/lua]

Be sure to get that in on amazon builds, they can reject you for pointing the review URL to android marketplace [import]uid: 110373 topic_id: 19991 reply_id: 78542[/import]

Thank you for the tip @brad. [import]uid: 89165 topic_id: 19991 reply_id: 78588[/import]

Hey guys,

Just retunrning in our topic here to ask you something else.

So, still about the RATE APP thing, how would I get my app to after launched, lets say 5 times by the user, it opens a miserable pop-up window asking the user to RATE IT and go directly to do so? (as usually we see into other apps as well)

Would love any plug-and-play code (as Mrs. Peach says…) :wink:
Many thanks for your attention Corona Devs.
Cheers,
Rodrigo. [import]uid: 89165 topic_id: 19991 reply_id: 78763[/import]

Everyone,

I think there is enough interest in this that it should be a feature within Corona. Something like…
[lua]native.showPopup(“rateApp”)[/lua]

I think this is especially important since there are many Android marketplaces out there such Google, Amazon, Barnes & Noble, Samsung, etc. The “rate my app” button within Corona should take the user to the marketplace that your app was downloaded from and not guess/assume that it came from Google’s or Amazon’s marketplace. I know in Java we can identify which marketplace app that your app was installed by and that’s the key to making this work.

I’ll write this up as a feature request. We can’t work on it any time soon (we have other commitments at the moment), but at least it will get in our queue. [import]uid: 32256 topic_id: 19991 reply_id: 78971[/import]

@Joshua It`s for sure a nice feature to have I agree 100%! Thank You for this gOOd NewS!

Looking close forward!

Cheers,
Rodrigo.

[import]uid: 89165 topic_id: 19991 reply_id: 78976[/import]

excellent idea! [import]uid: 94868 topic_id: 19991 reply_id: 78986[/import]

#RSC
JayantV wrote a lib that does exactly that. it’s over on github. It’s no longer supported. It’s listed in the Corona Code share area

http://developer.anscamobile.com/code/rating-dialog-include-your-projects
http://howto.oz-apps.com/2011/03/launch-rating-dialog-in-game.html
https://github.com/JayantVarma/Rating-Dialog-CoronaSDK [import]uid: 110373 topic_id: 19991 reply_id: 79013[/import]

I am all for a Ansca version of this… Then they have to support it when a new store appears!!!

+1 [import]uid: 88147 topic_id: 19991 reply_id: 79051[/import]

Hey @brad.herman Thank you very much for this info mate!

I only would like to ask you if you have tested it or if you know if it is actually working without “tilts”…?

Highly appreciated.
Cheers,
Rodrigo. [import]uid: 89165 topic_id: 19991 reply_id: 79053[/import]

It works very well, read the code and comments and note what parts are not functional. The basic usage counter pop up works great. [import]uid: 110373 topic_id: 19991 reply_id: 79073[/import]

@brad.herman , Thanks! Very appreciated.

I did not read that as yet as I am coding “other” parts of the project but tomorrow will be the day to check it out close. :slight_smile:

**EDIT: @brad, I just noticed that the .zip I got from GitHub came now without the “property” class (WOW)! @Jayant removed it from the download. :\ So, do you have it yet? Sorry.

Cheers,
Rodrigo. [import]uid: 89165 topic_id: 19991 reply_id: 79099[/import]**