Stencyl 3.4.0 is now out. Get it now!

Chartboost Mobile Ads (Updated Apr 27)

sandsoftimer

  • Posts: 316
iOS ->          

Android ->
iOS -> Bubble Tapping
 Android -> Bubble Tapping

JasonIrby

  • Posts: 290
Fantastic!

Thanks for you work on this Rob1221.

-Jason

NGS

  • Posts: 66
Thanks Rob.  I <3 this extension

rob1221

  • *
  • Posts: 9036
I added a new block to enable ads every time the app is launched from the background.  Currently it is only for iOS because I haven't figured out how to do that for Android.

FortySe7en

  • Posts: 304
Awesome! Thanks. Do I need to redownload from post before?

out2lunch

  • Posts: 118
Clacky Train has been released worldwide on the App Store!
Voodoo Zombie's 1.4.1 update has more bosses and magic items on the App Store!
Here's the Launch Trailer on YouTube.

rob1221

  • *
  • Posts: 9036
Awesome! Thanks. Do I need to redownload from post before?
Yes, you'll have to replace your extension folder with the new one.

Here's some suggestions on the Android equivalent to NSNotificationCenter:
http://stackoverflow.com/questions/3947641/android-equivalent-to-nsnotificationcenter
I only looked at that for a few minutes but it looks like I may have to edit GameActivity which I was hoping not to do.

riki82

  • *
  • Posts: 308
Great Job!
Works perfectly in iOS
Thanks Rob!  ;D

rob1221

  • *
  • Posts: 9036
JasonIrby updated the extension with blocks for the more apps page as well as Chartboost delegates (on Obj-C/Java level).  I haven't tested those changes so if anything doesn't work right then make a post here.

FortySe7en

  • Posts: 304
Is that extention OpenFL ready? Im getting this error now in OpenFL branch:
Code: [Select]
[LOG] Error: Source path "/Users/47/Downloads/Stencyl-full/plaf/haxe/extensions/chartboost/Chartboost/libChartboost.a" does not exist

rob1221

  • *
  • Posts: 9036
No, I'll test it tonight and see if I can get it working.

EDIT: Changing the template line in include.nmml does not work.  I don't know if a rebuild will solve the problem, but even if it would, I don't know the new method of rebuilding.

« Last Edit: November 11, 2013, 06:53:43 pm by rob1221 »

out2lunch

  • Posts: 118
Rob, I don't think the template is used in OpenFL.

So instead of the template and dependency in the old include.nmml:
Code: [Select]
<template path="template/iphone/Chartboost" rename="Chartboost" if="ios" />
<dependency name="Chartboost/libChartboost.a" if="ios" />

Just have the dependency in the OpenFL include.nmml and it'll copy it to the right place:
Code: [Select]
<dependency name="template/iphone/Chartboost/libChartboost.a" if="ios" />
Clacky Train has been released worldwide on the App Store!
Voodoo Zombie's 1.4.1 update has more bosses and magic items on the App Store!
Here's the Launch Trailer on YouTube.

rob1221

  • *
  • Posts: 9036
Thanks, that solved the problem.  I attached the OpenFL version of the extension to the first post.

FortySe7en

  • Posts: 304
Thanks a lot, will give it a try!

riki82

  • *
  • Posts: 308
Hello guys =)
I updated my Nexus 7 to Kitkat 4.4 and I noticed that the Chartboost Ads do not work on my apps.
On devices with 4.3 are working perfectly.
Any idea to solve the problem?
Or it may be the fault of Chartboost Labs?
Any suggestions?
Thanks in advance.
Riki