Skip to content
This repository has been archived by the owner on May 19, 2021. It is now read-only.

Black screen on Android #23

Closed
code4youreal opened this issue Nov 4, 2016 · 24 comments
Closed

Black screen on Android #23

code4youreal opened this issue Nov 4, 2016 · 24 comments

Comments

@code4youreal
Copy link
Collaborator

Hi!
I get black screen on android, please fix it.

@ratson
Copy link
Owner

ratson commented Nov 4, 2016

Thanks for reporting, you may have experienced the same problem as #22. Are you able to click the ad?

I am not available to fix it right now, will have a look this weekend.

@code4youreal
Copy link
Collaborator Author

Thank you for the fast answer. No I just see the black screen nothing else. Please fix this as you can. Thank you!

@code4youreal
Copy link
Collaborator Author

Hi! Do you fixed? Thx answer!

@code4youreal
Copy link
Collaborator Author

@vintage
Copy link
Collaborator

vintage commented Nov 6, 2016

So if you remove the cordova-plugin-admob-free plugin everything works correctly? Check your console in Xcode for any errors. Additionally debug the application using remote Safari connection. The amount of details you have provided is not sufficient.

@code4youreal
Copy link
Collaborator Author

Thank you for you fast reply. I am just a beginner, so I am not pro, but without your plugin works fine.
I do not know what is the problem, but if I use your plugin on Android and on iOS i just get a black screen. If i use other admob plugin then works fine, so I do not understand.

@vintage
Copy link
Collaborator

vintage commented Nov 6, 2016

Any errors in the browser/Xcode during run? The black screen must come from something, and there is for sure some trace in the output logs. I use this plugin in production in 8 games and I have no problems at all.

@code4youreal
Copy link
Collaborator Author

With your plugin on Intel xdk 3641 in simulation see only black screen.
Without your plugin on Intel xdk 3641 in simulation works fine.
As I wrote I do not know what is the problem, but without your plugin works fine my game.

@code4youreal
Copy link
Collaborator Author

Now I see the ad but the screen still black!
http://img5.fotos-hochladen.net/uploads/problemqa1dbg342s.png

@code4youreal
Copy link
Collaborator Author

First the game run fine, then load the ad and I get a black screen. The ad visible, but I see only black screen.

@ratson
Copy link
Owner

ratson commented Nov 7, 2016

@code4youreal
Would you try the latest version (v0.4.0)? Let me know if it fixes the problem.
If not, please try to run the example, confirm if it is working on your device.

@code4youreal
Copy link
Collaborator Author

If I use the new plugin under intel xdk 3641 then just loading and not build.

@code4youreal
Copy link
Collaborator Author

Hi!
The news is on iOS 10 the banner ads works me fine, but the interstitial ad do not show me or I get a full black screen.

@ratson ratson added the iOS label Dec 4, 2016
@ratson
Copy link
Owner

ratson commented Dec 4, 2016

@code4youreal I labeled this as iOS issue, is there still problem on Android?

@code4youreal
Copy link
Collaborator Author

Hi! Yes, unfortunately, on iOS works fine, but on Android I get only full black screen if I use this plug.
I use intel xdk+construct 2

@ratson ratson removed the iOS label Dec 7, 2016
@ratson ratson mentioned this issue Dec 7, 2016
@touxstudio
Copy link

Yes same problem for me. Black screen. Is there some way to fix? What compiler are you using for android @ratson?

@ratson
Copy link
Owner

ratson commented Dec 7, 2016

@touxstudio I am using Cordova to build the project.

@ratson
Copy link
Owner

ratson commented Dec 11, 2016

@code4youreal @touxstudio Did you testing on real device? What is the OS version?

@touxstudio
Copy link

@ratson Real Device Samsung Galaxy Note 4 -> Android 5.1.1 . Thanks

@code4youreal
Copy link
Collaborator Author

code4youreal commented Dec 11, 2016

@ratson Real Device iOS 10.1.1 iPad works fine. Thanks.
http://www.fotos-hochladen.net/uploads/attachment1856ui5rtxogcm.png

@Bahm
Copy link

Bahm commented Dec 13, 2016

I had a black screen because I used AdMob before the deviceready event had fired. I use Phaser (a game framework), and according to this article it detects Cordova and waits for the deviceready event to fire. Unfortunately, it failed to detect Cordova (probably because I removed cordova-init.js), thus making it possible to reference AdMob before it has been declared.

Regardless of what the problem is in your case, you should learn to debug Cordova apps. I have only developed Android apps so far, so I use Chrome developer tools (chrome://inspect/#devices).

Additionally, you should tell exactly how you use the plugin. Does it fail after just installing the plugin, or only if you try to use it (e.g. by calling AdMob.setOptions).

@ratson
Copy link
Owner

ratson commented Jan 15, 2017

v0.6 is out, please let me know if it fixes your problem.

@vintage
Copy link
Collaborator

vintage commented Apr 5, 2017

Closing due to inactivity. Feel free to reopen in case problem still occurrs.

@vintage vintage closed this as completed Apr 5, 2017
@wvalmorbida
Copy link

Eventually, the plug-in is displaying a full black screen while displaying the interstitial (admob.interstitial.show ()), causing the application to crash. I'm using cordova, and I noticed that this problem began to occur on May 6th, without having made any updates.
I came to think that this problem comes from some crashed google ad, but so far I have not been able to identify what is happening.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants