-
Notifications
You must be signed in to change notification settings - Fork 61
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 is not detected in 3.1.1 #108
Comments
Open your |
yes it has these lines
|
Does the example project work? |
Oh, I see, the singleton name is
|
example is not working and yes I tried that too but didn't work then I put "GodotAdMob" and still didn't work |
wait rewarded video worked on example when I deployed on my phone |
only reward video worked nothing else |
interstitial and banners not working |
Take a look at the logs using logcat. The example is working fine to me. |
Could it be something related to the admob network? Some days ago my project was running fine. This morning my project was showing the admob test banners but crashed when trying to show the interstitials. Some time later the project starting crashing always. After some tests I discovered that even though "Engine.has_singleton('AdMob')" was returning true, when I tried "Engine.get_singleton('AdMob')" the game crashed. Here is the relevant part of the logcat messages
|
I managed to solve my problem. I was trying to get the admob singleton on a _ready function of another singleton. I moved to logic to a _ready function of a normal object and it worked fine. Oddly, my setup was working before but then stopped working without reason. It could be something related to the loading order of the singletons and the time needed to setup the admob java objects from the java side. |
Can someone provide me with the .exe with the admob module already compiled?, Thanks |
@Gnumaru this module is working only up to Godot 3.1.1. If you use Godot 3.2 master, it'll crash. @carcedogames you can find precompiled modules here. |
Sorry, I forgot to mention these informations. I'm using the oficial 64 bit windows build of latest stable standard (without mono) version of godot, 3.1.1. Nevertheless my problem now seems urelated to this one since for @wamiqurrehman093 even Engine.has_singleton("GodotAdMob") is returning false whereas for me it returned true. I just wanted to point a possible correlation of the two problems but now it doesn't seem to be the case anymore. |
@Gnumaru @wamiqurrehman093 the problem still persists? |
OS target (Android/iOS):
Android
Godot version:
3.1.1
Issue description:
I compiled my own templates and tried this as well [ https://github.com/Shin-NiL/godot-custom-mobile-template/releases ] and put it in my custom package debug and release paths on android export window and also put the:
but still I get false whenever I try to load the Admob
print(Engine.has_singleton("GodotAdMob"))
The text was updated successfully, but these errors were encountered: