Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

"Defer system gestures on edges" not working on some devices?

Discussion in 'iOS and tvOS' started by Kaven01, Aug 29, 2019.

  1. Kaven01

    Kaven01

    Joined:
    Nov 22, 2017
    Posts:
    18
    Hi, I recently found strange behaviour of "Defer system gestures on edges" setting in Project settings > Player > Other settings. It works well on many iOS devices - you really have to sweep twice on any edge in order to bring in system dialog. BUT it does not work with new Dock window (tested on IOS 12.1, but it is probably a bit older). More specifically it does not work only on some devices.

    I tested it on simulator. With iPad Pro (10.5 inch) and deferred gestures from all edges you have to swipe twice in order to bring in Dock. But on iPad Pro (11 inch) one swipe is enough, with exactly the same project, so even same settings. Surprisingly, if you swipe from the top, then you again need two swipes. As if the "defered gestures" option did not work on bottom edge on this one device. I have checked twice that all edges are ticked in unity project settings.

    Is it iPad feature, or a bug of Unity, or what?
     
  2. AurimasA

    AurimasA

    Unity Technologies

    Joined:
    Apr 24, 2017
    Posts:
    24
    Hello @Kaven01 , this does look like a Unity issue with iOS devices without the Home button, like iPhone X or iPad Pro (2018 model). Please submit a new bug report with a minimalistic project that showcases the issue and post the bug ID here.
     
  3. Kaven01

    Kaven01

    Joined:
    Nov 22, 2017
    Posts:
    18
    After some testing it seems to be iOS issue. And probably not error but feature. It behaves in this way if I tick "Hide home button on iPhone X" in player settings. If I don't hide home button on iPhone X, then bottom edge is diferred correctly.
     
    kiles likes this.
  4. amoswazana

    amoswazana

    Joined:
    Nov 23, 2015
    Posts:
    5
    Unfortunately this doesn't help with the top area gesture. Even without "Hide home button on iPhone X" checked in player settings the Notification Center will open.
    Weirdly enough, if you drag from the absolute edge of the screen the gesture is deferred. Dragging from a few pixels in though will not defer the gesture.

    Using Unity 2019.2.9f1 with player settings -> Defer system gestures on edges -> top and bottom. iPhone 11 Pro Max running iOS 13.1
    iPhoneX_gestures_example.jpg
     
  5. festival

    festival

    Joined:
    Feb 3, 2011
    Posts:
    80
    The defer system gestures needs a disabled - "Hide home button on iPhone X" . Have you checked this?
     
  6. unity_zZJre63Jr5thRw

    unity_zZJre63Jr5thRw

    Joined:
    Jul 2, 2018
    Posts:
    1
    I noticed the same issue with few pixels on top of horizontal screen layout opening the Notification Center immediately.
    Also managed to repro the issue in several other games.

    Could be an iOS problem.
     
  7. Ternovoy

    Ternovoy

    Joined:
    Dec 15, 2017
    Posts:
    3
    I have this problem too( 2019.2.13f1 iPhone XR iOS 13.1.3
     
  8. amoswazana

    amoswazana

    Joined:
    Nov 23, 2015
    Posts:
    5
    This issue is still bugging us on Unity 2019.2.15.
    Anyone have any news on this?
     
  9. unity_EzDBYc2QC1rmHw

    unity_EzDBYc2QC1rmHw

    Joined:
    Nov 23, 2017
    Posts:
    1
    hi, any ideas? still not working in unity 2019.4.2