android home button not working on S5

Released this app on android device, and for some reason the home button doesnt always work, I’ve tested it on Samsung galaxy s4 and seems to work while friends have reported that the home button doesn’t work on their S5, any ideas? thx

As far as I know there is no way to intercept Home button on S5.

Instead of trying to intercept Home button or App switching you should use those:

OnApplicationPause() //app is no longer focused, it was switched or the user pressed Home button
OnApplicationFocus() //app is back and running again

I had the same problem, just on a Huawei ascend p7.

I have experienced i similar issues with Unity where methods aren’t called until there is a Debug line in them. But since that isn’t that easy on Android i did this, and now it seems to be working.

void OnApplicationPause(bool pause)
    {
        if (pause)
            isPaused = pause;
    }

    void OnGUI()
    {
        if (isPaused)
        {
            if (GUI.Button(new Rect(0, 0, Screen.width, Screen.height), "PAUSE PAUSE PAUSE PAUSE PAUSE PAUSE PAUSE PAUSE PAUSE PAUSE PAUSE PAUSE PAUSE PAUSE PAUSE PAUSE PAUSE PAUSE PAUSE"))
            {
            }
        }
    }

Now my testers have reported that the app pauses correctly. Hope it helps.