iap when app is on Google Play and Amazon

If my app is on both Google play and Amazon, how does the app know which store to use for in-app purchases?

Does Android track which store the app came from?

Perhaps a broader question that needs to be answered first is, does Corona SDK support the Amazon Appstore? I know that it supports apps for Kindle, but Amazon also has an Android App store. I’m hoping to get some preliminary information before I go through a lot of trouble to distribute my app in the Amazon store only to find out that the managed “key” prevents it from launching on Android devices.

Hi Mark,

Do you mean, does Corona have a plugin for in-app purchases on Amazon? If so, then yes, and the documentation is located here:

http://docs.coronalabs.com/plugin/amazon.iap/index.html

Take care,

Brent

Ok, maybe I’m not asking the question right.

I know about the Amazon plugin and documentation in a general sense. I did some more research today and I think when I do a build for the Amazon store your compiler will do something to the build that directs the app to know where the store is. Is that right? It’s the same way that target.store knows what store to target. It’s not based on the device it’s based on the build, right?

Also, I found out today that you can download android apps from Amazon, which means I can host android apps on Amazon. Does Corona SDK support this with the Amazon plugin?

The main reason I am interested is that I am trying to do a free in app purchase for a limited time. Amazon will let me do this and Google Play requires that an iap be at least .99.

Since I haven’t released the app yet, I figure I will just release it on Amazon now and release it on Google Play later as long as I can make it work on Android either way.

The IAP for each vendor can almost be thought of as different services.  For instance if your device has the Google Play app installed, an app downloaded from Amazon on a regular android device can use Google IAP.  If you build your app to support the Amazon store, I would suspect any android app with the Amazon SDK would talk to Amazon’s servers.  It doesn’t make much sense for Amazon to limit their IAP to just Kindle devices.

When you build for Android you can set a “Target Store” and in your code you can get the target store value in your code and then you can use it to target the store of your choice.  That way when you upload an app to Amazon, build it with Amazon as the target and in the code check to see if the target store is Amazon then make the Amazon IAP calls.

Rob

That is what I was trying to understand. Thanks Rob! No offense Brent, I think I just didn’t explain my question well.

In a nut shell, if I build for Amazon, it will run on either a kindle or an android device and I can direct the iap.

I was worried about it because of the GP key that is in the code, I was wondering if I was going to go through a lot of trouble to put it on Amazon only to have the app be unable to open on an Android device because of the GP managed Key, I’m guessing that the key is ignored when built for Amazon.

It’s also a bit confusing because this:

[lua][“plugin.amazon.iap”] =

{
publisherId = “com.amazon”,
supportedPlatforms = { [“android-kindle”]=true },
},[/lua]

I read “android-kindle” and was like… whaaaat? Now that you explain it, I get it. It runs on either.

Perhaps a broader question that needs to be answered first is, does Corona SDK support the Amazon Appstore? I know that it supports apps for Kindle, but Amazon also has an Android App store. I’m hoping to get some preliminary information before I go through a lot of trouble to distribute my app in the Amazon store only to find out that the managed “key” prevents it from launching on Android devices.

Hi Mark,

Do you mean, does Corona have a plugin for in-app purchases on Amazon? If so, then yes, and the documentation is located here:

http://docs.coronalabs.com/plugin/amazon.iap/index.html

Take care,

Brent

Ok, maybe I’m not asking the question right.

I know about the Amazon plugin and documentation in a general sense. I did some more research today and I think when I do a build for the Amazon store your compiler will do something to the build that directs the app to know where the store is. Is that right? It’s the same way that target.store knows what store to target. It’s not based on the device it’s based on the build, right?

Also, I found out today that you can download android apps from Amazon, which means I can host android apps on Amazon. Does Corona SDK support this with the Amazon plugin?

The main reason I am interested is that I am trying to do a free in app purchase for a limited time. Amazon will let me do this and Google Play requires that an iap be at least .99.

Since I haven’t released the app yet, I figure I will just release it on Amazon now and release it on Google Play later as long as I can make it work on Android either way.

The IAP for each vendor can almost be thought of as different services.  For instance if your device has the Google Play app installed, an app downloaded from Amazon on a regular android device can use Google IAP.  If you build your app to support the Amazon store, I would suspect any android app with the Amazon SDK would talk to Amazon’s servers.  It doesn’t make much sense for Amazon to limit their IAP to just Kindle devices.

When you build for Android you can set a “Target Store” and in your code you can get the target store value in your code and then you can use it to target the store of your choice.  That way when you upload an app to Amazon, build it with Amazon as the target and in the code check to see if the target store is Amazon then make the Amazon IAP calls.

Rob

That is what I was trying to understand. Thanks Rob! No offense Brent, I think I just didn’t explain my question well.

In a nut shell, if I build for Amazon, it will run on either a kindle or an android device and I can direct the iap.

I was worried about it because of the GP key that is in the code, I was wondering if I was going to go through a lot of trouble to put it on Amazon only to have the app be unable to open on an Android device because of the GP managed Key, I’m guessing that the key is ignored when built for Amazon.

It’s also a bit confusing because this:

[lua][“plugin.amazon.iap”] =

{
publisherId = “com.amazon”,
supportedPlatforms = { [“android-kindle”]=true },
},[/lua]

I read “android-kindle” and was like… whaaaat? Now that you explain it, I get it. It runs on either.