Rate This App ... for Kindle and Nook

Thanks guys!

Rob, are you talking about something like?

[lua]

local optionsRating = “”

local storeName = system.getInfo(“targetAppStore”)

if storeName == “amazon” then

optionsRating = { supportedAndroidStores = { “amazon” }}

 

elseif storeName = “google” then

 

optionsRating = { supportedAndroidStores = { “google” }}

 

end

 

– Then in a button event have:

 

native.showPopup(“rateApp”, optionsRating)

 

 

[/lua]

Yes, that was what I was referring to.

Rob

Cool. Thank you Rob!!!

Mo

I am still a little confuse with this rate button. I am hoping to release for Amazon and Google PlayStore. The issue is that Amazon seems to also be selling Android apps. Also would I need to use system.getInfo(“targetAppStore”) for this?  I am trying to avoid to have two builds (one for Amazon Kindle) and one for Google Playstore.

I am thinking of something like:

******

local optionsRating =

{

  

   supportedAndroidStores = { “google”, “amazon” },

}

– Then in a button event have:

native.showPopup(“rateApp”, optionsRating)

******

Would that piece of code works for both Amazon (Kindle/general Android) and Google Play Store? Or is Amazon would likely reject the app because I am using “google” in the option table?

Finally, I did not put any app ID (like I used to do with IOS) since my understanding (I could be wrong) that both Amazon and PlayStore simply use the current loaded app to automagically figure out the app the user is trying to review. Unlike IOS where you have to specify the app ID. My understanding for google and amazon I only need the to setup an app ID if I want to review a different app than the one calling the review link.

I hope I making some sense:)

This is the last piece of the puzzle I need to figure before sending my first Android implementation of ios app to both Amazon and the Play Stores!

Thank you guys.

Mo

I would like to add a “Rate this App” feature for Kindle and Nook. I’ve found links on how to accomplish this for iOS iTunes and Android Play Store. I found the below helpful for these devices:

http://corona.techority.com/2010/12/07/how-to-add-a-rate-it-button-to-your-iphone-app/
http://developer.coronalabs.com/code/rate-app-popup

Has anyone added this feature to Kindle or Nook? If so, is there a reliable way to determine the device type with a combination of system.getInfo(“model”) and system.getInfo(“platformName”) to sort out the proper url of the device marketplace or is this something that needs to be modified in the code for builds targeted for each device?

Thanks.

-Jeremy [import]uid: 161992 topic_id: 33682 reply_id: 333682[/import]

Yes I did it. But I didn’t do it myself as I had some doubts. I took help from one of my developer friend works in mobile app design agency.

Mo, what I would do is see what store you built the app for (on the Android build screen you pick which store) using the system.getInfo(“targetAppStore”) see;  http://docs.coronalabs.com/api/library/system/getInfo.html#targetappstore

then when you call native.showPopup() then have a big “if” statement, to say:

if store is google then

     call it for google

elseif it’s for amazon then

     call it for amazon

end

etc. 

Rob

Thanks guys!

Rob, are you talking about something like?

[lua]

local optionsRating = “”

local storeName = system.getInfo(“targetAppStore”)

if storeName == “amazon” then

optionsRating = { supportedAndroidStores = { “amazon” }}

 

elseif storeName = “google” then

 

optionsRating = { supportedAndroidStores = { “google” }}

 

end

 

– Then in a button event have:

 

native.showPopup(“rateApp”, optionsRating)

 

 

[/lua]

Yes, that was what I was referring to.

Rob

Cool. Thank you Rob!!!

Mo