Also, I notice that Chartboost also supports the Amazon app store, which is something that many of the ad providers don’t do. Do you think it’s likely that this would be implemented as well?
I presume it’s actually the same calls with a “store” argument or something provided since it’s Android. It would be great to have this if it’s not too much trouble.
This is just pure speculation at the moment, but I think Admob might be able to target different stores (Google/Amazon/Samsung) with the same set-up. I believe their SDK queries which store apps are available on the device and shows ads for the ones it finds.
As said I’m not 100% certain about this, but I’m going to conduct a test to see if this is true or not. I hope so, as it would open up another advertising platform for those stores.
We had real problems with Admob, which I’ve reported to Corona but haven’t heard anything back yet (another user reported they had experienced the same issue). It was preventing Facebook login from working for some reason.
You would just call the function that the sample has attached to the button:
kiip.saveMoment { momentName = "A Super Prize!", --call this whatever you want value = 5, listener = function( event ) -- Print the event table items for k, v in pairs( event ) do print( k, ":", v ) end end, }
Runtime error module ‘plugin_kiip’ not found:resource (plugin_kiip.lu) does not exist in archive no field package.preload[‘plugin_kiip’] no file ‘/Users/me/Library/Application Support/Corona/Simulator/Plugins/plugin_kiip.lua’ no file ‘/Users/me/mygame/plugin_kiip.lua’ no file ‘/Applications/CoronaSDK/Corona Simulator.app/Contents/Resources/plugin_kiip.lua’ no file ‘/Users/me/Library/Application Support/Corona/Simulator/Plugins/plugin_kiip.dylib’ no file ‘./plugin_kiip.dylib’ no file ‘/Applications/CoronaSDK/Corona Simulator.app/Contents/Resources/plugin_kiip.dylib’ stack traceback: [C]: in function ‘require’ ?: in function ‘require’ /Users/me/mygame/main.lua:5: in main chunk ?: in function <?:218>
Have I missed something obvious?
I’ve put our keys into the init function, but since it doesn’t even get that far I don’t think that’s the cause. It seems as though the simulator doesn’t even manage to download the plugin.
Any ideas?
Are you building this with the Corona SDK or Corona enterprise?
Also if it’s the former, what build are you using?
Currently using Corona SDK, although as it happens I’ve also sent you a private message requesting the library for use with Enterprise, when you have a chance
And to answer your edit, I was getting the error in the simulator. I couldn’t build for the device, because the error made my project fail before I even tried to build.
Now I get the “kiip isn’t supported in the simulator” popup, so I presume it’s working.
Ok thanks, I’ll give it another try once I’ve got the chance to.
In the sample code, I also noticed this:
kiip.saveMoment { momentName = "A Super Prize!", value = 5, customBanner = { color = { 82, 122, 213, 1 }, position = { 0, 0, bannerWidth, bannerHeight }, image = { filename = "images/sample\_background.png", baseDir = system.ResourceDirectory }, title = "Congratulations!", message = "Click here to claim a reward!" }, listener = function( event ) -- Print the event table items for k, v in pairs( event ) do print( k, ":", v ) end end, }
but I read on a forum post that the custom banner stuff has been removed from the plugin. If that’s the case, you might want to remove that from the sample too.
Hi. Just thought I’d let you know that we’ve also bought the AmazonAds and Chartboost plugins and the documentation has the same error. For both plugins it’s missing the supported platforms table which causes the simulator to immediately get an error:
For the amazon ads plugin, I’m not sure if just having “android = true” is sufficient, or whether there is an “amazon = true” property available. Would you happen to know how that one should work?
I’ll be testing it out shortly, but if you were able to confirm how it should be on amazon that would be helpful.
While I’m mentioning it, a while back I made a plugin for someone and one of the things that the corona docs said I needed to do was supply a stub for OSX and Windows builds even though the plugin wasn’t developed for them. I just had dummy function calls that said “this plugin does not work in the simulator”.
I’m just wondering if they are missing from these plugins, which is why I’m seeing the “could not find plugin” errors when I don’t include the supportedPlatforms table?
Well I’m running build 2014.2359 (yesterday’s release), so I doubt that’s the cause haha.
I’m running Corona on OSX, so if you mainly use Windows maybe that’s something to do with it?
Incidentally (and I realise this wasn’t a chartboost topic to begin with) I’ve noticed that if I accidentally call chartboost.init() twice with the same details, the first call is successful and the second one fails. Then if I try to call chartboost.show() it fails. I realise this is due to an error in my code, as show() works once I made sure that init() was only called once, but I wonder whether the plugin should prevent duplicate init calls from causing problems.