Amazon iAP - Freezing on Init

Hello all,

Sorry if this has been answered, but I did not manage to find any recent posts that helped us with the issue.

We are in build 1202 of Corona SDK, and our app works with Google and Apple stores just fine, no issues.  However, when we put in Amazon iAP it freezes on startup.  I’ve narrowed down the location to where this is happening with pop-ups:

store = require "plugin.amazon.iap" store.init( transactionCallback )

basically, at one of these two lines.

our build.settings:

["plugin.amazon.iap"] = { -- required publisherId = "com.amazon", },

What could it be that is causing the app to freeze?  Is there a permission or certain plugin that interferes with the Amazon plugin that anyone knows of?  Note that the callback passed into store.init is the same we have used for Apple and Google stores… so it’s in and it works for those two stores (figured it’d be unnecessary to include the whole function because of this).

Just in case… try this in build.settings and see if it helps:

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

Naomi

Just tried it out, unfortunately did not help… still froze in exactly the same place/area.  It is definitely freezing on the store.init line now, for sure, though…

Hmmm…  I’m sorry, but I don’t know what else to suggest at this point.

Naomi

Alright, thanks anyway.  If anyone else has any ideas, please let me know.

I would have posted this question in the Amazon plugin forum.  Each time I have posted in there with an Amazon question, it was responded to quite quickly.

One thing I would suggest is to look in the logcat file and see what is happening when it locks up.  More information on debugging here:

https://coronalabs.com/blog/2013/07/09/tutorial-basic-debugging/

Just in case… try this in build.settings and see if it helps:

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

Naomi

Just tried it out, unfortunately did not help… still froze in exactly the same place/area.  It is definitely freezing on the store.init line now, for sure, though…

Hmmm…  I’m sorry, but I don’t know what else to suggest at this point.

Naomi

Alright, thanks anyway.  If anyone else has any ideas, please let me know.

I would have posted this question in the Amazon plugin forum.  Each time I have posted in there with an Amazon question, it was responded to quite quickly.

One thing I would suggest is to look in the logcat file and see what is happening when it locks up.  More information on debugging here:

https://coronalabs.com/blog/2013/07/09/tutorial-basic-debugging/