Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

RateApp for Amazon?
Started by troylyndon Jul 29 2019 12:29 PM

7 replies to this topic

Best Answer troylyndon , 29 July 2019 - 12:50 PM

ok, then perhaps we should modify the rateApp documentation, so we can support iOS, Android and Amazon as follows:

if system.getInfo("targetAppStore")=="amazon" then
     system.openURL("market://details?id=xxcom.amazon.package.namexx")
else
     options={ iOSAppId="xxappIDnumberxx", supportedAndroidStores={"google","amazon"}, androidAppPackageName="xxcom.gmail.android.package.namexx" }
     native.showPopup("rateApp",options)
end

[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

troylyndon

[GLOBAL: userInfoPane.html]
troylyndon
  • Contributor

  • 613 posts
  • Corona SDK

Does anyone know if the RateApp feature work properly on Android devices using the Amazon Store?

 

It looks as if it might but I cannot explicitly find any article or discussion about this point. I only found this:

 

https://docs.coronalabs.com/api/library/native/showPopup.html#appstore-rateapp



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,900 posts
  • Enterprise

I don't believe it does.



[TOPIC: post.html]
#3

troylyndon

[GLOBAL: userInfoPane.html]
troylyndon
  • Contributor

  • 613 posts
  • Corona SDK

  Best Answer

ok, then perhaps we should modify the rateApp documentation, so we can support iOS, Android and Amazon as follows:

if system.getInfo("targetAppStore")=="amazon" then
     system.openURL("market://details?id=xxcom.amazon.package.namexx")
else
     options={ iOSAppId="xxappIDnumberxx", supportedAndroidStores={"google","amazon"}, androidAppPackageName="xxcom.gmail.android.package.namexx" }
     native.showPopup("rateApp",options)
end


[TOPIC: post.html]
#4

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,900 posts
  • Enterprise

If the docs say it's supported, then it probably is. Are you reporting it's not working?

 

Rob



[TOPIC: post.html]
#5

troylyndon

[GLOBAL: userInfoPane.html]
troylyndon
  • Contributor

  • 613 posts
  • Corona SDK

The reason I don't think it works is because Amazon requires the Amazon-specific-app-id to be in the URL, so if we're not passing the Amazon-specific-app-id anywhere to Corona, how could Corona know how to format the URL to bring up the Amazing RateApp? This is my thinking, but I'd be delighted to find out I'm wrong.



[TOPIC: post.html]
#6

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,900 posts
  • Enterprise

I believe it's just looking for the reverse domain package id... com.yoursite.yourapp name

 

Rob



[TOPIC: post.html]
#7

troylyndon

[GLOBAL: userInfoPane.html]
troylyndon
  • Contributor

  • 613 posts
  • Corona SDK

@Rob, yes it is the review package id that you set through the Amazon developer console. The reason I don't think Corona does the rateapp is because there is no setting in build.settings where we identify the Amazon package id.



[TOPIC: post.html]
#8

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,900 posts
  • Enterprise

The package ID is the com.yoursite.yourapp and you set that up in the Amazon developer console and build your Corona app with that package id. It comes from the build screen.

 

Try it and see if it works.




[topic_controls]
[/topic_controls]