Search Unity

iOS native dialog problem

Discussion in 'iOS and tvOS' started by kyuskoj, Jul 14, 2015.

  1. kyuskoj

    kyuskoj

    Joined:
    Aug 28, 2013
    Posts:
    56
    There is a problem when i press home button while any native dialog is opened. (such as leaderboard)
    When i came back to application, native dialog is disappeared and I can't re-open any native dialog with this message on Xcode

    Warning: Attempt to present <UIAlertController: 0x1885a820> on <UnityDefaultViewController: 0x145cdbd0> which is already presenting

    I use latest version of Xcode and iOS.
    Is there anyone who has this issue?
     
  2. Ryan-Barker

    Ryan-Barker

    Joined:
    Sep 7, 2013
    Posts:
    1
    I'm having this same issue, but unfortunately haven't been able to correct it. This seems to happen with any of the native views on an app suspend.
     
  3. _Paulius

    _Paulius

    Mobile Developer Unity Technologies

    Joined:
    Jul 8, 2014
    Posts:
    173
    Last edited: Sep 1, 2015
  4. Alexey

    Alexey

    Unity Technologies

    Joined:
    May 10, 2010
    Posts:
    1,624
    Temporary workaround would be to disable "on-pause snapshot" (sigh at apple - how come they broke such easy thing):
    in UI/UnityAppController+ViewHandling.mm
    search for
    - (UIView*)createSnapshotView
    and just return nil *always*, like this:

    - (UIView*)createSnapshotView
    {
    return nil;
    }