Confused by Amazon deployment

I’m on my 6th attempt to deploy to the Amazon app store and I just can’t seem to wrap my brain around it. 

Oddly enough, they accepted my very first submission, but I suppressed it because it had hard coded credentials. That’s a whole other story and not really relevant.

I have an Android only app and I’m utilizing IAP Badger in order to [seamlessly] target both GP and Amazon. Everything is good, code-wise, but I can’t get the build settings right.  I’ve read a several posts and articles, but they are leading me in circles.

For example, here is a subset of my build.settings file.  If I list the plug-ins like this while targeting Amazon in my build, then I get " Corona: Developer Error : <App> ** does not target the Google Play store, but includes Google Play Services. **

&nbsp; &nbsp;["plugin.firebaseInvites"] = &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; publisherId = "tech.scotth" &nbsp; &nbsp; &nbsp; &nbsp; }, &nbsp; &nbsp; &nbsp; &nbsp; ["plugin.notifications.v2"] = &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; publisherId = "com.coronalabs" &nbsp; &nbsp; &nbsp; &nbsp; }, &nbsp; &nbsp; &nbsp; &nbsp; ["plugin.OneSignal"] = &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; publisherId = "com.onesignal" &nbsp; &nbsp; &nbsp; &nbsp; }, &nbsp; &nbsp; &nbsp; &nbsp; ["plugin.appodeal"] = &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; publisherId = "com.coronalabs" &nbsp; &nbsp; &nbsp; &nbsp; }, &nbsp; &nbsp; &nbsp; &nbsp; ["plugin.amazon.iap"] = &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; publisherId = "com.coronalabs", &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; supportedPlatforms = { ["android-kindle"]=true } &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; },&nbsp; &nbsp;

If I modify the build settings like below, then Amazon rejects me with a series of Runtime Errors, one for each plugin  (see the attached image)

&nbsp; &nbsp;["plugin.firebaseInvites"] = &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; publisherId = "tech.scotth", &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; supportedPlatforms = { android=true } &nbsp; &nbsp; &nbsp; &nbsp; }, &nbsp; &nbsp; &nbsp; &nbsp; ["plugin.notifications.v2"] = &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; publisherId = "com.coronalabs", &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; supportedPlatforms = { android=true } &nbsp; &nbsp; &nbsp; &nbsp; }, &nbsp; &nbsp; &nbsp; &nbsp; ["plugin.OneSignal"] = &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; publisherId = "com.onesignal", &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; supportedPlatforms = { android=true } &nbsp; &nbsp; &nbsp; &nbsp; }, &nbsp; &nbsp; &nbsp; &nbsp; ["plugin.appodeal"] = &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; publisherId = "com.coronalabs", &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; supportedPlatforms = { android=true } &nbsp; &nbsp; &nbsp; &nbsp; }, &nbsp; &nbsp; &nbsp; &nbsp; ["plugin.amazon.iap"] = &nbsp; &nbsp; &nbsp; &nbsp; { &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; publisherId = "com.coronalabs", &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; supportedPlatforms = { ["android-kindle"]=true } &nbsp; &nbsp; &nbsp; &nbsp; },&nbsp; &nbsp;

Affected Device List

Non-Amazon Android
Kindle Fire HD 8.9 WAN (2012)
Kindle Fire HDX WAN (2013)
Kindle Fire HDX 8.9 WAN (2013)
Fire Phone
Fire HDX 8.9 WAN (2014)
BlackBerry Classic
BlackBerry Passport
BlackBerry P’9982
BlackBerry P’9983
BlackBerry Q10
BlackBerry Q5
BlackBerry Z10
BlackBerry Z3
BlackBerry Z30
BlackBerry Leap

I’ve tried different combinations, based off of some plugins not being compatible, but every submission gets the same result.

The only thing I haven’t tried is not letting Amazon sign the apk for me and I always say yes to Apply Amazon DRM?

I’m building for Amazon with a production keystore

Windows 10

Version: 3.0.0

Build: 2017.3155

Platform: KFJWI / x64 / 10.0 / Intel® HD Graphics 630 / 4.5.0 - Build 22.20.16.4749 / 2017.3155 / en_US | 

Are you specifically building for Amazon in the build dialog?

Simon

Yes, I’ve tried it both ways.  Should I be letting Amazon sign my APK during the publish process or no?

I do - I didn’t find it caused any problems.

Simon

I let Amazon sign it and use DMR. Interesting you get that error for OneSignal. Never have a problem with that plugin. And here is a couple of plugins and how they are set up:

["plugin.OneSignal"] = { publisherId = "com.onesignal" }, ["plugin.applovin"] = { publisherId = "com.coronalabs", supportedPlatforms = { android = true, ["android-kindle"] = true} }, ["plugin.admob"] = { publisherId = "com.coronalabs", supportedPlatforms = { android = true, ["android-kindle"] = true}

Are you specifically building for Amazon in the build dialog?

Simon

Yes, I’ve tried it both ways.  Should I be letting Amazon sign my APK during the publish process or no?

I do - I didn’t find it caused any problems.

Simon

I let Amazon sign it and use DMR. Interesting you get that error for OneSignal. Never have a problem with that plugin. And here is a couple of plugins and how they are set up:

["plugin.OneSignal"] = { publisherId = "com.onesignal" }, ["plugin.applovin"] = { publisherId = "com.coronalabs", supportedPlatforms = { android = true, ["android-kindle"] = true} }, ["plugin.admob"] = { publisherId = "com.coronalabs", supportedPlatforms = { android = true, ["android-kindle"] = true}