Error when trying to use Kiip plugin

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.

The Android version of the Chartboost plugin will support all stores that Chartboost supports for Android.

Once it’s available it’s just a matter of setting up your app for Amazon in Chartboost’s dashboard to get the App-ID and SIG specific for Amazon.

Ok thanks, I’ve already set those up so that’s good to hear.

And thinking about it that makes perfect sense, it will return Amazon or Google ads based on the ID+sig provided.

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.  

 How does it work.?

If the players complete the first level, I show a reward.

and will appear a kiip pop up.

is it possible to show the pop up without the button "show me a reward?

[lua]

– Button to save a moment

local saveMomentButton = widget.newButton

{

defaultFile = “images/button.png”,

    overFile = “images/button_on.png”,

    fontSize = 15,

    width = 150, 

    height = 40,

    labelColor =

    {

    default = { 1 },

    over = { 1 },

    },

    label = “Show me a reward!”,

    onRelease = function( event )

    – Save a kiip moment

    kiip.saveMoment

    {

    momentName = “A Super Prize!”,

    value = 5,

    listener = function( event )

    – Print the event table items

    for k, v in pairs( event ) do

     print( k, “:”, v )

    end

    end,

    }

    end

}

saveMomentButton.x = display.contentCenterX

saveMomentButton.y = display.contentCenterY

[/lua]

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, }

We purchased the Kiip plugin today, and I’m in the process of making a quick test app.

build.settings is as follows:

settings = { android = { usesPermissions = { “android.permission.INTERNET”, “android.permission.ACCESS_NETWORK_STATE” }, }, plugins = { [“plugin.kiip”] = { publisherId = “com.gremlininteractive” }, }, }

(plus the usual iphone, orientation stuff etc).

In my code, as soon as I call this:

local Kiip = require( “plugin.kiip” )

I get the following error:

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?

Cheers

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  :slight_smile:

I’m using SDK build 2014.2326

Ah I know who you are then :slight_smile: I’ll get that to you soon. I’d like to work out whats going wrong here first though.

Does our github sample work for you? > https://github.com/GremlinInteractive/plugins_sample_kiip

EDIT: Your getting this issue on device right, not simulator?

Yes it did, and I’ve spotted the difference.

In the docs, it has the plugin defined in build.settings as:

settings = { plugins = { ["plugin.kiip"] = { publisherId = "com.gremlininteractive" }, }, }

whereas in the sample project it is:

settings = { plugins = { ["plugin.kiip"] = { publisherId = "com.gremlininteractive", supportedPlatforms = { iphone = true } }, }, }

Presumably the supportedPlatforms bit was a recent addition? Would this:

supportedPlatforms = { iphone = true ,&nbsp;android = true} 

also be valid? Or is Android still “coming soon”?

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.

Yes, Android is a supported platform. Your addition above is valid. 

If you are getting that popup, you should be ready to go!

Thanks for informing me about the sample code, i’ll get that updated :slight_smile:

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.

Indeed it has been, for a while now. This sample code needs a brush up, thanks for reporting all of this :slight_smile:

No problem, I understand completely  :smiley:

I have pushed up the changes/fixes to the Github repo. Let me know if you have any further questions :slight_smile:

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:

supportedPlatforms = { iphone = true , android = true}

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?

Hello there.

What Corona build are you using? The plugins are stubbed out and shouldn’t result in errors when run in the simulator. 

Sounds like you aren’t running a high enough build of corona, thats generally the cause of these kinds of error messages. 

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.