Home Indicator hiding for Iphone X

Hi, 

The problem in my game is that Home Indicator activates with any click on the screen and I can’t leave it like this. 

Documentation says:

“prefersHomeIndicatorAutoHidden” — iOS only; specify a boolean for value. If set, iPhone X software home indicator would autohide if screen is not interacted with

and 

“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. When possible this setting should be left at default false but can be useful to prevent accidental activation of system gestures in swipe heavy games

display.setStatusBar( display.HiddenStatusBar ) native.setProperty( "prefersHomeIndicatorAutoHidden", true ) native.setProperty( "preferredScreenEdgesDeferringSystemGestures", true )

But it does not any effect

My game video

video as it should be (not mine game example). To use the home indicator in this example user needs to drag it really high, almost to the middle off the screen

Any thoughts ? 

Kind regands,

-Dmytro

I can’t help with your issue but the game looks good!

haha, thanks :slight_smile:

The videos are not that helpful because we can’t see where you’re touching and swiping. Can you also provide a text description that details where you’re touching/swiping and how the two videos differ?

Thanks

Rob

Hello sir. I am getting an error while making a build for iOS. It says Code signing failed. Unknown error: 1xfffffffffffff

I have the latest Corona SDK, installed 6 days back. And I followed all instructions as mentioned in Corona’s building for iOS documentation.

Please help.

@tarunLuthra - don’t hijack this thread.  start your own.

This thread has nothing to do with your problem and hijacking ongoing threads is very rude as well as against the forums’ rules.

Hi Rob, 

In my game Home Indicator is active for any click on the sceen, no matter what it does, close to the indicator or not. So it is always glows. Video shows that indicator swipe immediately close the app

Other video shows indicator that is invisible for user. It also is not active for the clicks/swipes on the screen unless you hold directly on the indicator zone and drag to the top

The most ennoing thing is that general look of the game becomes worst because of it  :( 

I just tested adding:

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

to a landscape game I’ve been working on, built it and installed it on my iPhone X and taps/touches on the screen do not activate the swipe up bar unless I keep the touch active and seems to behave as I would expect it to.

Rob

I’m unlucky then. Have no idea what to do in such case. When something obvious should work but but it doesn’t :confused:

Can you put together a small sample app that has the issues you’re seeing and share a .zip file with the project in it with us?

Thanks

Rob

Hi Rob,

Check this please https://www.dropbox.com/s/bvuuu0zc60vu8s2/IPhone10App.zip?dl=0

Thanks

It does seem to misbehave a bit. Initially, it seems fine, but once the indicator shows, it seems like it wants to show up too easily. Tapping outside the area with graphics causes the app to come up with a black screen which looks like something isn’t right in your app. If you can address that (as to not confuse others looking at the sample), I would recommend you take that .zip file and file a bug report using the Report a Bug link at the top of the page.

Rob

Hi,

I’m having the same issue Dmytro originally had - I can get the home indicator to hide briefly, but it pops up on any screen tap.  It looks rotten, and to make room for it would really disrupt the layout.

Rob or Dmytro - can you tell me if this was ever resolved?

I also wanted to clarify that I understand this correctly. By adding the two lines you mentioned, we should be able to hide the home indicator for any tap or gesture short of a full swipe up? I ask because there seems to be some contradictory info in the forums, both here and on Apple. Some say you cannot permanently hide it no matter what, this ones seems to say you can. I just wanted to make sure I understand before I spend a lot of time trying to make this work.

Thanks!

Steve

I don’t know if a bug report was filed or not. I would encourage you to file one using the Report a Bug link above. You will need to have a small project that demonstrates the issue that at a minimum contains a main.lua, config.lua, build.settings and any assets needed to allow our engineer to take the project, open it, build it, and install it to see the issue. Please put that in a .zip file and upload to a service like Dropbox or Google Drive and put a sharable URL to the .zip file in the form submission. You can use the “Report a Bug” link at the top of the page.

Thanks

Rob

Hi, 

I did the bug report submission as Rob suggest. Also I had conversation with Tim from Corona Labs he said engineers got the problem but no dates to get it fixed. Hope soon

Dmytro,

You may have already experimented with this, but have you tried deleting the prefersHomeIndicatorAutoHidden reference and only running the preferredScreenEdgesDeferringSystemGestures? If you do that the home indicator line is always present but it’s very translucent. Not as good as no line at all but better than the bright white line. Just a thought.

Steve

The game looks great, but I have one suggestion. This might seem like a small thing, but I would recommend removing the cigarette from the game.

At 17s mark on the first video, the character is smoking that cigarette prominently. Google, Apple and others are pretty strict when it comes to enforcing age restrictions on their games, and that cigarette will likely bump your game’s age restriction to PEGI 16. If this isn’t an issue, then ignore what I just said. :smiley:

Here’s a link to Google Play Help on content ratings: https://support.google.com/googleplay/answer/6209544?hl=en

That would be a problem, but… we have a boss in the game who smokes “something” that loolks like a joint. So sigarette is not a problem at all :). This is our decision to rate the game for 16+

hm, not sure. Will check this! Thanks for advice

I can’t help with your issue but the game looks good!