Search Unity

How to get the ApplicationPause event in Tizen based Unity App

Discussion in 'Tizen' started by srirambngl, Jan 28, 2016.

  1. srirambngl

    srirambngl

    Joined:
    Oct 28, 2015
    Posts:
    13
    Hi,

    I have to know the unity app status if it is running or in background (due to press of home key or any other app gained the focus). From the google search i understand that OnApplicationPause() is the routine which intimates about this status.

    But on Unity game built for Tizen Platform is not getting OnApplicationPause call back. Is there any thing i am missing here or for tizen it is not supported.

    If any one has already tried it please let me know the way to receive OnApplicationPause callback.

    regards
    Sriram.
     
  2. Masterfalcon

    Masterfalcon

    Unity Technologies

    Joined:
    Dec 29, 2014
    Posts:
    364
    Just so that I fully understand the situation. You are saying that when an application is put in the background OnApplicationPause callbacks are not called?

    What version of Unity have you seen this behavior on?
     
  3. srirambngl

    srirambngl

    Joined:
    Oct 28, 2015
    Posts:
    13
    Hi,

    Its 5.2.2f1 personal edition.
     
  4. Masterfalcon

    Masterfalcon

    Unity Technologies

    Joined:
    Dec 29, 2014
    Posts:
    364
    What about my first question. Am I understanding the situation correctly?
     
  5. srirambngl

    srirambngl

    Joined:
    Oct 28, 2015
    Posts:
    13
    Yes your understanding is correct. I am not receiving any OnApplicationPause callback when the unity game is sent to background by pressing Home Key.
     
  6. Masterfalcon

    Masterfalcon

    Unity Technologies

    Joined:
    Dec 29, 2014
    Posts:
    364
    Odd. It works for me here. I just added this to a script to test. When I hit the home button pauseStatus is True.

    void OnApplicationPause(bool pauseStatus) {
    Debug.Log("Called OnApplicationPause " + pauseStatus);
    }

    I'm not sure what else to check though.