3

I'm writing game in Unity3D v5.3.3. The orientation of my game is set only portrait and I'm using Heyzap SDK for ads mediation. I have displaying video ads from Vungle, UnityADS, Heyzap and AdColony providers. After reading a lot of articles about orientation issues, I have done this manual fix in XCode:

Find this return orientations part in UnityAppController.mm file Find this return orientations part in UnityAppController.mm file

and replace it with this one. and replace it with this one.

All is working properly, except one case with AdColony ads. After finishing displaying landscape video from AdColony and getting this screen: Static AdColony screen after playback finish Static AdColony screen after playback finish

Without closing this screen I'm moving app to background and than back to foreground. AdColony's screen disappears and my game displays in Landscape orientation. All the touch controls are not working after this. So the only way to continue is to kill game and run again. Please help with solution.

Hayk Geghamyan
  • 105
  • 2
  • 11
  • btw there may be some *particular* solution for this known Hayzap annoyance: I sure hope there is. I offered unfortunately only a general approach below :/ Sorry I for one can't help more. – Fattie Mar 10 '16 at 14:59
  • Hi, I'm an engineer at Heyzap. We don't have any control over AdColony rotation (we just call `playVideoAdForZone:withDelegate:`—there isn't any configuration or anything. Do you experience this when using AdColony outside of mediation? – MaxGabriel Mar 10 '16 at 22:58
  • Hi @MaxGabriel, thanks for answer. I'm using AdColony only in Heyzap. And today I found a real issue, while the video ad from AdColony is playing I send my Unity game to background, and then by opening it again went back to foreground. The video layer gone behind the Unity scene layer, so my game displayed in Landscape, but the video continue to play. I can't see the video, but I can hear the sounds. So the issue is with order of views. Is this a known issue and how can I fix it? – Hayk Geghamyan Mar 11 '16 at 05:58
  • Hey @HaykGeghamyan, I haven't heard of that specific issue before, but AdColony does have a bunch of issues relating to orientation. Can you send that info to AdColony support? They're the only ones that can debug/fix it. – MaxGabriel Mar 11 '16 at 12:37
  • Thanks a lot @MaxGabriel. – Hayk Geghamyan Mar 11 '16 at 13:08
  • @HaykGeghamyan did you solve your issue? – kantagara Oct 03 '17 at 21:50

0 Answers0