Skip to main content
Inspiring
September 2, 2011
Question

preventDefault() iPhone / iPad home button

  • September 2, 2011
  • 2 replies
  • 1020 views

In xCode  you need devices to be jailbreaked to communicate with  springboard so i think there is no way in AIRbut ill ask anyway.

Can home button default be prevented in AIR for iOS ? Or is there a way to do that ?

A customer wants a application to be shown in the stores so users can  use only this app but they dont want to let users to close the app d do  something else.

Or is there maybe a restart "hack" if app gets closed by home button, it restarts itself ?

This topic has been closed for replies.

2 replies

Participating Frequently
September 5, 2011

Hi,

There is no API which can prevent the default behavior of Home button. Also, I am not sure if such an App will be approved at the AppStore.

Thanks.

Sanika

Inspiring
September 2, 2011

One of our custumer simply protect the ipad used in a museum with a cover which protect the front face of the iPad around the screen, so the home button is not accessible.

Inspiring
September 5, 2011

Hm... okay, i assume then that there is no way to accomplish that via code.

In my case customer need home button to be terminated and not use cover over the button.