Blackscreen when touch an ad and return to app

I didn’t even know about the blackscreen. I saw that the picture backfill didn’t load correctly the icon of the app so I clicked to see if it was working. But when I returned to the app from google play I got the blackscreen. My app was still working because I could press the back button and return.It seems that the ad activity went black when app lost focus or…I can’t test enough because it only happens with real ads. But how can I fix this?
I tried the pause override script from the other threads with similar problems but no luck.

Hello,

You should send some logs or your ad script to get help faster.

Regards,

This could be an issue of the app not resuming properly after being paused when the ad is shown.

Check out this forum post and let me know if the solution works for you.

If it doesn’t work, find the PauseGame() and ResumeGame() methods in the Engine.cs script included with the Unity Ads asset package. Comment out the contents of each method and try again.

I still get the black screen. Touching the screen while I have a black screen will show the ad or start google play again.
I don’t see a black screen when I press recent or home button and return to the app only after touching the add. Also the logs aren’t showing nothing different when it works correctly or I get the black screen.

The only thing I can do right now is to close the ad when app is resumed though this is not a very good solution…Or I don’t know if there is way to refresh current view?

Can you share an example of your implementation code? Also, what device are you testing on? Which version of Unity are you building with? What version of the Unity Ads asset package are you using?

Ad initialization script(I have this in an earlier scene than the others scripts)

    public string gameId;
    public bool testMode;

    void Start (){
      Advertisement.allowPrecache = true;
      Advertisement.Initialize(gameId,testMode);
}
}

To show an ad at start of the app:

 IEnumerator Start()
  yield return new WaitForSeconds(0.75f);
  do yield return null;
  while (!Advertisement.isInitialized);
  do yield return null;
  while (!Advertisement.isReady(zoneId));
  Advertisement.Show(zoneId);

In the menu, I have this start code and call ShowAd() when I want to show more ads(pause or loading scene.)

    public float Start = 90;
    public float Repeat = 300;
    public string zoneId;

        void Start ()
        {
          InvokeRepeating("ShowAd",Start,Repeat);

        }

    public void ShowAd() {
      if(Advertisement.isReady(zoneId)){
         Advertisement.Show(zoneId);
        }
    }
}

Unity version:4.6.1p4. But I think it happened with 4.6.0 too.
Ads version:I think I have the latest version even if it says 20 january there is nothing new.
Device: Htc One Sv,Samsung Galaxy S4 and a Szenio tablet same problem in all.
Also, sometimes it loads and works correctly but very few times.