Search Unity

Game is preventing the lock screen from appearing

Discussion in 'Android' started by GreatBigJerk, Oct 17, 2013.

  1. GreatBigJerk

    GreatBigJerk

    Joined:
    May 20, 2012
    Posts:
    35
    I'm running into an issue where the lock screen won't appear at all while my game is running on a device. If I hit the power button to put the device to sleep, pressing it again will immediately take me to the game instead of showing the lock screen. The same goes for when the device goes to sleep normally.

    Is there some sort of setting that could cause this to happen? I've already made sure that I'm not requesting the wake lock permission in the manifest. It's pretty frustrating :neutral:
     
  2. Agent_007

    Agent_007

    Joined:
    Dec 18, 2011
    Posts:
    899
    Do you have any plugins that might alter the manifest?
     
  3. Deathbyhugs

    Deathbyhugs

    Joined:
    May 20, 2013
    Posts:
    1
    I am having the same problem i make sure wake lock is not in permissions Application.runInBackground is false but i never see the lock screen just right back to my app. Help please!
     
  4. bitter

    bitter

    Unity Technologies

    Joined:
    Jan 11, 2012
    Posts:
    524
    If you are in "Development Mode" this is the default behavior of the application.
     
    Achoo, R0ma1n and sebastianpt like this.