Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new plugin #41

Open
matrixreal opened this issue Nov 30, 2015 · 10 comments
Open

new plugin #41

matrixreal opened this issue Nov 30, 2015 · 10 comments

Comments

@matrixreal
Copy link

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

  1. EJBindingAdvertising.m

import "EJBindingAdvertising.h"

@implementation EJBindingAdvertising

  • (id)initWithContext:(JSContextRef)ctx
    object:(JSObjectRef)obj
    argc:(size_t)argc
    argv:(const JSValueRef [])argv
    {
    return self;
    }

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 👍

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

ps : i have add to appdelegate.m this 👍

  • (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

    [AP_SDK setupForAppPortalIdentifier:@"291355"];

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

@finscn
Copy link
Owner

finscn commented Dec 1, 2015

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

@finscn
Copy link
Owner

finscn commented Dec 1, 2015

By the way , I've send an email to [email protected] , and send TestFlight invitations to
[email protected] , [email protected] , [email protected] .

@matrixreal
Copy link
Author

Don't worry they Know ;)

Envoyé de mon iPhone

Le 1 déc. 2015 à 20:14, finscn [email protected] 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
Copy link
Author

@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
Copy link
Owner

finscn commented Dec 2, 2015

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

@matrixreal
Copy link
Author

@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
Copy link
Author

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

@matrixreal
Copy link
Author

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
Copy link
Owner

finscn commented Dec 4, 2015

Send Me your code first

@matrixreal
Copy link
Author

everything is on my first page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants