Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Screen Edges Deferring System and iPhone X + 11
Started by ojnab Oct 31 2019 07:04 AM

6 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

ojnab

[GLOBAL: userInfoPane.html]
ojnab
  • Contributor

  • 587 posts
  • Corona SDK

It seems that

native.setProperty( "preferredScreenEdgesDeferringSystemGestures", true )

doesn't work for iPhone X + 11.

 

Any chance it can be fixed. Thanks.



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,300 posts
  • Enterprise

Can you provide a better description of what you mean by it's not working? What are you expecting? What are you seeing? A video might be really helpful as well as a simple project that demonstrates the issue (complete with main.lua, config.lua, build.settings and any needed assets) as a .zip file and share a link to it from DropBox, Google Drive or similar.

 

Thanks

Rob



[TOPIC: post.html]
#3

ojnab

[GLOBAL: userInfoPane.html]
ojnab
  • Contributor

  • 587 posts
  • Corona SDK

Well, I am expecting that it does what the docs state:

 

"preferredScreenEdgesDeferringSystemGestures" — iOS only; specify a boolean for value. If set, system gestures (Control Center, notification bar, etc.) would not work immediately, but require additional swipe to activate.

 

To see the issue add: native.setProperty( "preferredScreenEdgesDeferringSystemGestures", true

to what ever project and install the build on an iPhone X or 11 device.

The additional swipe to activate the software home button doesn't work.

 

To see it working install the build on an iPhone < X with iOS >= 11



[TOPIC: post.html]
#4

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,300 posts
  • Enterprise

Hi @ojnab. I added it to the NativeDisplayObjects sample app, built and installed it to my iPhone X running iOS 13.1.3.

 

The bottom swipe up bar that you use to background an app, grayed out and took two swipes up to get it to work. Swipes from the top showed a small down arrow and it took a second swipe to bring down the notifications or the control panel.

 

I commented it out and built again. The app behaved just like apps without the feature enabled does.

 

It appears that it's working to me.

 

Rob



[TOPIC: post.html]
#5

ojnab

[GLOBAL: userInfoPane.html]
ojnab
  • Contributor

  • 587 posts
  • Corona SDK

Thanks Rob

 

I investigated the issue a bit more and it seems that when adding these together:

native.setProperty( "prefersHomeIndicatorAutoHidden", true )
native.setProperty( "preferredScreenEdgesDeferringSystemGestures", true )

the "preferredScreenEdgesDeferringSystemGestures" doesn't work.

 

If I only add native.setProperty( "preferredScreenEdgesDeferringSystemGestures", true ) it does work.



[TOPIC: post.html]
#6

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,300 posts
  • Enterprise

What happens if you flip the order of the two?



[TOPIC: post.html]
#7

ojnab

[GLOBAL: userInfoPane.html]
ojnab
  • Contributor

  • 587 posts
  • Corona SDK

Yes that was the first thing I tried. No difference.

Maybe it is a limitation from apple's side that you can't both hide and defer.

 

My app's can do without the hidden home indicator, so I just removed that part. Thanks




[topic_controls]
[/topic_controls]