Closed Universi closed 5 years ago
Can you remove the platforms folder and try again? And what's the build command you're using?
I already removed iOS and Android platforms. Build command is : tns run iOS [or] Android
Do you have the same issues with the demo app in this repo?
git clone https://github.com/EddyVerbruggen/nativescript-admob
cd nativescript-admob/src
npm i
npm run demo.ios
Your demo works perfectly.
Are you able to narrow down the differences between our apps, or do you want me to take a look at yours?
I'll try to find the differences between the two, and if I don't find, I'll come back to you in the day. Thank you so much.
I just received an email from Admob telling me that I can't get ads because my payment informations are not filled yet. Could this be the reason for the errors? A delay of 24 is required to validate my informations. I'm waiting a bit to see if that solves the problem and I keep you informed. Thanks.
@Universi I have the exact same issue, did you find any solution ?
@EddyVerbruggen I got this error a few months ago but just downgraded tns to temporarily get around it. Got it in the demo app after rebuilding node_modules and platform with tns 5.3.0:
I did some more testing today and it looks like it happens in 5.3.0 forward. I tried 5.2.2 and it worked fine, and I was running on 5.1.0 previously in my personal app. I'm happy to do some more investigation or help out anyway I can.
@AlexisWalravens @Universi Try to downgrade tns to a version below 5.3.0 it may work assuming you did a rebuild after removing platforms folder. I had the same issue and was able to get ads to appear after that.
This is not an ideal solution especially that NS 6.0 is out now...
I'll take a look.
I've just published version 4.0.0 of this plugin with one major change on iOS: the AdMob SDK now requires a change to your Info.plist
. See this bit in the README for details.
While not directly related to this issue it may solve the problem for you, because I was able to run the demo app in this repo with NativeScript 5.4 without issues.
Hi!
Thank you for the plugin, but it doesn't work for me on iOS and Android.
I get this error on iOS : CONSOLE LOG file:///app/tns_modules/nativescript-admob/admob.js:145:18: Error in admob.createBanner: TypeError: GADRequest.request is not a function. (In 'GADRequest.request()', 'GADRequest.request' is undefined)
And this one on Android :
JS: admob createBanner done JS: displayedEvent : [object Object] JS: displayedEvent : [object Object] chromium: [INFO:library_loader_hooks.cc(143)] Chromium logging enabled: level = 0, default verbosity = 0 chromium: [ERROR:gles2_cmd_decoder.cc(2167)] [GroupMarkerNotSet(crbug.com/242999)!:547D98CA]GL ERROR :GL_INVALID_OPERATION : BackFramebuffer::Create: <- error from previous GL command
What can I do, please ? I thank you in advance