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

AdMob events not firing #1165

Closed
moldstadt opened this issue Mar 10, 2017 · 1 comment
Closed

AdMob events not firing #1165

moldstadt opened this issue Mar 10, 2017 · 1 comment

Comments

@moldstadt
Copy link

Hi.

I am trying to use the AdMob plugin to show reward videos. I need to handle the onAdPresent() event to know if the reward video has been viewed. I see the video, however, this event doesn't get called if I subscribe to it as follows:
AdMob.onAdPresent().subscribe(val => console.log("onAdPresent(): " + val);

Doing it this way works:
document.addEventListener('onAdPresent', val => console.log("onAdPresent(): " + val));

I have also tried subscribing to all other events using the first method, as well as for different types of ads (banner, interstitial), and they don't get fired either.

@ramoncarreras
Copy link

Yes. I'm facing this same issue with ionic-native 3.2.4.

My system information:

Cordova CLI: 6.5.0
Ionic Framework Version: 2.2.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.1.4
ios-deploy version: 1.9.0
ios-sim version: 5.0.11
OS: macOS Sierra
Node Version: v7.1.0
Xcode version: Xcode 8.2.1 Build version 8C1002

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