Closed rafaelblink closed 5 years ago
I'm having the same issue too
@wish4129 If you remove the @Override on the line 90 from:
C:\projects\ConcursosParaiba\platforms\android\app\src\main\java\name\ratson\cordova\admob\rewardvideo\RewardVideoListener.java:
The build works fine but my ads appears only in test mode, if I remove IsTesting and set id of the admob, the ads doesn't appears, both banner, interstitial and video.
Same here
Having the exact same issue, my ionic info:
cli packages: (C:\Users\altic\AppData\Roaming\npm\node_modules)
@ionic/cli-utils : 1.19.2
ionic (Ionic CLI) : 3.20.0
global packages:
cordova (Cordova CLI) : 8.0.0
local packages:
@ionic/app-scripts : 3.1.10
Cordova Platforms : android 7.1.0 browser 5.0.3
Ionic Framework : ionic-angular 3.9.2
System:
Node : v8.11.2
npm : 6.1.0
OS : Windows 10
Environment Variables:
ANDROID_HOME : not set
Misc:
backend : pro
same here
Same here, is there any fix yet ?
Seems duplicate to https://github.com/ratson/cordova-plugin-admob-free/issues/244 Please check your if your are using latest admob sdk.
Remove new version and install old version to resolve problem , ionic cordova plugin add cordova-plugin-admob-free@0.17.0 its work
Ok, I’ve got a solution to solve this. It’s not as clean as I wanted but it works. It looks like there is a problem with older versions of google play service. It’s currently using 11.0.4 but we need something more recent. I try to update config.xml with the PLAY_SERVICES_VERSION variable but I couldn’t make it work. So, at the end, I simply edited project.properties and changed these 2 lines: cordova.system.library.1=com.google.android.gms:play-services-base:11.0.4 cordova.system.library.2=com.google.android.gms:play-services-ads: 11.0.4 to those ones: cordova.system.library.1=com.google.android.gms:play-services-base:15.0.1 cordova.system.library.2=com.google.android.gms:play-services-ads:15.0.1 15.0.1 is the latest versions at the time of writing. I had to change both lines or it wouldn’t work. I don’t know what the consequences of using a more recent version. Hopefully nothing else is breaking.
@JeanClaudeCottier ur project are showing the ads in production mode? setting id with ca-app-pub-xxx and isTesting = false?
Getting same Issue With Latest Verison of this plugin any fix available ?
+1
@rafaelblink The problem had nothing to do with production or testing setup. Yes, I'm in production and live. I'm using cordova directly not a 3rd party tool like ionic.
After deleting 90th line from code: C:\projects\ConcursosParaiba\platforms\android\app\src\main\java\name\ratson\cordova\admob\rewardvideo\RewardVideoListener.java
This works for me
@ajaymalik14 Good luck getting rewarded videos to work now :)
Remove cast from file src in ionic project: /plugins/cordova-plugin-admob-free/src/android/rewardvideo/RewardVideoListener.java Line: 90 @Override in last function
I removed this in the ionic plugins and also in the node_modules, then removed the android platform and added again, so far so good;
@nilesh52 It worked thanks....
@nilesh52 It worked thanks....
Ok, I’ve got a solution to solve this. It’s not as clean as I wanted but it works. It looks like there is a problem with older versions of google play service. It’s currently using 11.0.4 but we need something more recent. I try to update config.xml with the PLAY_SERVICES_VERSION variable but I couldn’t make it work. So, at the end, I simply edited project.properties and changed these 2 lines: cordova.system.library.1=com.google.android.gms:play-services-base:11.0.4 cordova.system.library.2=com.google.android.gms:play-services-ads: 11.0.4 to those ones: cordova.system.library.1=com.google.android.gms:play-services-base:15.0.1 cordova.system.library.2=com.google.android.gms:play-services-ads:15.0.1 15.0.1 is the latest versions at the time of writing. I had to change both lines or it wouldn’t work. I don’t know what the consequences of using a more recent version. Hopefully nothing else is breaking.
I changed in project.properties, and works for me. thx
Hey guys, I'm in toubles after add the admob-free. I'm using Ionic Framework 3.20.0
See errors.