Dexus-Forks / cordova-plugin-ironSource

ironSource Mobile ads - aka supersonic
MIT License
5 stars 2 forks source link

Is this plugin working? #4

Open ccchai opened 7 years ago

ccchai commented 7 years ago

I tried this:

 var isAds = new IronSourceAds("my app key here", "put a user id here");

window.addEventListener("onOfferwallAvailable", function (e) {

           alert(JSON.stringify(e));
            isAds.showOfferWall();

}, false); 

e.offerAvailable returns true, but when I call showOfferWall(), nothing shows up.

Dexus commented 7 years ago

not yet need to push the work...

ccchai commented 7 years ago

I see. Will come back again in the future.

Dexus commented 7 years ago

Stop, you try Android? When yes it should work, please make sure you have currently enabled the testing mode on ironsource. It's work for me on my Phone. It's the last stand of my working plugin for android. What does show you the integrationtest? On your debug console?

Dexus commented 7 years ago

Also not forget to enter on ironsource website your test device...

ccchai commented 7 years ago

Aha! I found the problem:

In the readme.md, you write:

isAds.showOfferWall();

while it should be: isAds.showOfferwall(); //lowecase 'w'

Also, I should put "on" before the event names, e.g. onOfferwallOpened, onOfferwallClosed,

However, I still don't get any event call for offerwallCreditReceived or offerwallCreditFailed.

Dexus commented 7 years ago

Is "test" mode now enabled?

Sorry the current events not right documented in the readme...

This are the current events:

onInterstitialAdClicked onInterstitialAdClosed onInterstitialAdLoadFailed onInterstitialAdOpened onInterstitialAdReady onInterstitialAdShowFailed onInterstitialAdShowSucceeded

onOfferwallAdCredited onGetOfferwallCreditsFailed onOfferwallAvailable onOfferwallClosed onOfferwallOpened onOfferwallShowFailed

onRewardedVideoAdClosed onRewardedVideoAdEnded onRewardedVideoAdOpened onRewardedVideoAdRewarded onRewardedVideoAdShowFailed onRewardedVideoAdStarted onRewardedVideoAvailabilityChanged

ccchai commented 7 years ago

I am using test mode all the time. I will give it another try tomorrow.

ccchai commented 7 years ago

I got the Rewarded Video and Offer Wall running as expected in my testing app now. Didn't try Interstitial as I don't use it.

Your plugin is, in fact, working perfectly well. The root problem is the Readme which needs to update, almost all of its info is wrong, e.g. it says showRewardedAd() while it should be showRewardedVideo(), etc.

Thank you for your plugin, it saves me some headaches to integrate with ironSource ads.

Dexus commented 7 years ago

Yeah, ios is coming soon was a long time using the old shit....

Von meinem iPhone gesendet

Am 12.08.2017 um 09:08 schrieb ccchai notifications@github.com:

I got the Rewarded Video and Offer Wall running as expected in my testing app now. Didn't try Interstitial as I don't use it.

Your plugin is, in fact, working perfectly well. The root problem is the Readme which needs to update, almost all of its info is wrong, e.g. it says showRewardedAd() while it should be showRewardedVideo(), etc.

Thank you for your plugin, it saves me some headaches to integrate with ironSource ads.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.