finscn / Ejecta

A Fast, Open Source JavaScript, Canvas & Audio Implementation for iOS
42 stars 6 forks source link

new plugin #41

Open matrixreal opened 8 years ago

matrixreal commented 8 years ago

Hi, i try playing with ejecta to implement some new plugin i found easy network with good and high ecpm why i choose it ? because it's the simple to prgramme since they have only 1 action / call (showing banner) thats all here is doc http://docs.airpush.com/index.php?title=IOS_SDK_1.4

what i do ?

1) EJBindingAdvertising.h

import <UIKit/UIKit.h>

import "AP_SDK.h"

import "EJBindingBase.h"

@interface EJBindingAdvertising : EJBindingBase @end

2) EJBindingAdvertising.m

import "EJBindingAdvertising.h"

@implementation EJBindingAdvertising

EJ_BIND_FUNCTION( showBanner, ctx, argc, argv ) {

[AP_SDK showAdWithViewController: self.tabBarController withPlacementId:1 isTestMode:false];

return NULL; } @end

then on index.js the call to show banner should be :+1:

var rev = new Ejecta.Advertising("291355"); rev.showBannerAd();

ps : i have add to appdelegate.m this :+1:

the problem is that the app crash ... any advice ? thank you

finscn commented 8 years ago

Sorry, there too many problems in your code, but my english to weak , I don't know how explain to you :'(

finscn commented 8 years ago

By the way , I've send an email to developer@ketchappgames.com , and send TestFlight invitations to dev1@ketchappgames.com , dev2@ketchappgames.com , dev3@ketchappgames.com .

matrixreal commented 8 years ago

Don't worry they Know ;)

Envoyé de mon iPhone

Le 1 déc. 2015 à 20:14, finscn notifications@github.com a écrit :

Sorry, there too many problems in your code, but my english to weak , I don't know how explain to you :'(

— Reply to this email directly or view it on GitHub.

matrixreal commented 8 years ago

@finscn you told me to add this to ejecta.js right?

ejecta.load('index.js'); }; window.open = function(url, confirm) { if (arguments.length > 1) { ejecta.openURL(url, confirm); } else { ejecta.openURL(url); }

finscn commented 8 years ago

@matrixreal no , I reply it in a wrong place. that is reply another thread ...

matrixreal commented 8 years ago

@finscn ok can you take a look on my plugin ? i think it's simple for you specially because there are 2 call showbanner and hidebanner? thank you

matrixreal commented 8 years ago

@finscn ok can you take a look on the airpush plugin ? i did not success to made it :(

matrixreal commented 8 years ago

any can help me please ? what go wrong in my plugin ? here is the documentation ... there is only one call http://docs.airpush.com/index.php?title=IOS_SDK_1.4 i'm newbie and it's my first plugin ...

finscn commented 8 years ago

Send Me your code first

matrixreal commented 8 years ago

everything is on my first page