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. Dismiss Notice

possible to block "sleep" and "home" buttons on iPhone?

Discussion in 'iOS and tvOS' started by the_gnoblin, Dec 8, 2010.

  1. the_gnoblin

    the_gnoblin

    Joined:
    Jan 10, 2009
    Posts:
    722
    Hello.

    This may sound strange and unnecessary,
    but is it possible to disable "sleep" and "home" buttons on iphone after the app has launched?

    thanks,
    Slav
     
  2. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    No its not.
    Apple does not offer any such capabilities, attempt to override them results in instant rejection.

    you have to comply to the requirements which in this case means: listen to the callbacks in the application controller (or for you as unity user -> listen to OnApplicationPause(bool pause)