I’m testing unityAds on my soon to be released game, and the videos show fine, but after the 2nd or 3rd view, after coming back from the video, the screen stays black, and I have to reopen the game.
Also happens with the test project they provide (I installed it using the asset store plugin).
I think so, haven’t been able to reproduce the issue in a while, though.
Would you mind trying this workaround and let me know how it works for you? Attach it to any GameObject in your scene and toggle on usePauseOverride. Then build the app to your device.
I tried that work around but if didn’t help for me. I found that performing logic triggered by the resultCallback action was causing problems. For example, saving to google cloud or firing off analytics. However this would only cause an issue for every 2nd or 3rd video.
I fixed it by making sure any logic gets called at least 1 frame after the resultCallback (to make sure the game had received focus).
The issue you’re seeing with the end screen started occurring just a few days ago, and is something we’re currently researching. We haven’t identified the cause yet. Perhaps you can help us by answering the following questions:
How often do you see the black screen when an ad is shown?
Which ad campaigns are shown leading up to this issue occurring?
We found out that our CDN (contend delivery network) where all files (like the video end-card) are downloaded from, is returning mismatching content type with headers (Headers tell that content is Gzipped, but the file sent is actually not sent => Therefore UI is broken). This only happens on some countries (atleast in Germany and Russia, might be others).
We are currently fixing this, I’ll update when this is fixed.
@HeikkiTunkelo Hi mate i am still getting this issue when UnityAds are displayed in India/Japan, Could you tell me if this is fixed or not please thank you.
I’m having this issue currently only when running on an actual Android device (Nexus 5). Only way I could find a workaround this is by essentially by destroying and recreating all the visible game objects into the scene after the advertisement has been closed.
Also a note regarding this: The “black screen” actually has a slight black to gray gradient, my uneducated guess would be the Ad framework is not cleaning up all the gameobjects it’s creating for the advertisement.
I can send you guys source code if you have trouble reproducing this.