Open phatakrajan opened 6 years ago
I could not make admob work either. Seems like it is getting the ad but can not show on page.
I'm using FlexboxLayout as main layout on the page, can that be related?
@phatakrajan @mehyaa didi you solve this issue? I'm facing the same problem?
They started to show after some time actually, without changing anything. I think it is related to AdMob somehow.
@simonettoa It started showing up for me after some time too
I have followed all instructions as mentioned in the document. I do not see any ads even though there is no error shown. However interesting point is that i don't get the console message for success as well. Just see the message that my device is added as a Test Device. Is there anything to be done. What am i may be missing. Here is my code.
`import { Injectable } from "@angular/core"; import firebase = require("nativescript-plugin-firebase"); import { Message } from "nativescript-plugin-firebase"; import * as dialogs from "ui/dialogs";
@Injectable() export class FirebaseService { public constructor() { firebase.init({ onMessageReceivedCallback: (message: Message) => { console.log(
Title: ${message.title}
); console.log(Body: ${message.body}
); // if your server passed a custom property called 'foo', then do this: console.log(Value of 'foo': ${message.data.foo}
); }, onPushTokenReceivedCallback: function (token) { console.log("Firebase push token: " + token); // this.add(token); } }).then( instance => { console.log("firebase.init done"); }, error => { console.log(firebase.init error: ${error}
); } ); }} `
I am inserting this service in my components and calling functions to show Banner and Interstitial ads. Does it require any permissions to be added to the androidmanifest file? Logs that i always get is
JS: Treating this deviceId as testdevice: 0F1D18B84D1XXXXXXXXXXXXXXXXXDD6 JS: Treating this deviceId as testdevice: 0F1D18B84D1XXXXXXXXXXXXXXXXXDD6
when i call showBanner and showInterstitial function