Corona SDK version: 2015.2799
I’ve recently started to port my game over to the Amazon app store but noticed that on start up, the Amazon version of the game greeted me with a unexciting black screen.
The simulator version of the game works just fine but on-device testing showed a problem. Via ADB debugging, I notice that logging stopped right after the game initialised the IAP plugin, which incidentally is called before the first game screen is loaded.
superduper:android-sdk-macosx noodle$ platform-tools/adb logcat Corona:v *:s
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
--------- beginning of system
--------- beginning of main
V/Corona (16610): > Class.forName: network.LuaLoader
V/Corona (16610): < Class.forName: network.LuaLoader
V/Corona (16610): Loading via reflection: network.LuaLoader
I/Corona (16610): Platform: SM-G900F / ARM Neon / 5.0 / Adreno ™ 330 / OpenGL ES 3.0 V@84.0 AU@ (CL@) / 2015.2799 / English | GB | en_GB | en
V/Corona (16610): > Class.forName: plugin.fuse.LuaLoader
V/Corona (16610): > Class.forName: CoronaProvider.analytics.flurry.LuaLoader
V/Corona (16610): < Class.forName: CoronaProvider.analytics.flurry.LuaLoader
V/Corona (16610): Loading via reflection: CoronaProvider.analytics.flurry.LuaLoader
V/Corona (16610): > Class.forName: plugin.amazon.iap.LuaLoader
V/Corona (16610): < Class.forName: plugin.amazon.iap.LuaLoader
V/Corona (16610): Loading via reflection: plugin.amazon.iap.LuaLoader
For the moment, my game starts if the Amazon IAP plugin isn’t initialised so it proves that there is a problem with plugin. Has anyone in the community encountered this before?
if targetStore == “amazon” then
– store = require “plugin.amazon.iap”
– App locks up here!
– store.init( transactionCallback )
elseif targetStore == “google” then
–We’re on Google - init the store
store = require(“plugin.google.iap.v3”)
store.init( “google”, transactionCallback )
elseif targetStore == “apple” then
–We’re on Apple - init the store
store.init( “apple”, transactionCallback )
end
The plugin is configured as follows:
[“plugin.amazon.iap”] =
{
publisherId = “com.amazon”,
supportedPlatforms = { [“android-kindle”] = true },
},
Many thanks
Jonathan