Search Unity

  1. How can our website serve you better? Give us your feedback. Take our survey and let us know.
    Dismiss Notice

OnApplicationFocus always return True!

Discussion in 'BlackBerry' started by Wadjey, Sep 1, 2015.

  1. Wadjey

    Wadjey

    Joined:
    Feb 4, 2015
    Posts:
    244
    Code (CSharp):
    1. void OnApplicationFocus(bool focusStatus)
    2. {
    3. //focusStatus is always True, there is no way to detect when the app lose focus to pause it.
    4. }

    Please fix this, as there is now way to detect when the app go to background in BalckBerry devices, I'm unable to detect when my Unity apps lose focus to pause it and show a "Pause Menu"!
    (tested on BlackBerry Q10, BB10 software version: 10.3.1, Unity version: 5.1.3f1).


    The bug case number: #724234
     
    Last edited: Sep 4, 2015
    MrEsquire likes this.
  2. Wadjey

    Wadjey

    Joined:
    Feb 4, 2015
    Posts:
    244
    Please fix this bug before the end of support of BlackBerry as it's a blocking bug for my games :/
     
  3. Wadjey

    Wadjey

    Joined:
    Feb 4, 2015
    Posts:
    244
    Hi AlexThibodeau,
    There is any news about this bug #724234 and the other reported bugs? (#721582 and #716990)
     
  4. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    Does not seem Alex been online for long time, maybe he gone holiday or they Unity told him not to focus more on bug fixes, i just hope they allow him to finish..
     
  5. Wadjey

    Wadjey

    Joined:
    Feb 4, 2015
    Posts:
    244
    I hope he still working on these bugs to resolve them in the next patch release
     
  6. AlexThibodeau

    AlexThibodeau

    Unity Technologies

    Joined:
    Jul 23, 2013
    Posts:
    309
    This issue sounds familiar. I'll take a look after I nail some of the other bugs that have been reported.
     
    Wadjey likes this.
  7. Wadjey

    Wadjey

    Joined:
    Feb 4, 2015
    Posts:
    244
    Thank you Alex, please don't forget to resolve this bug before the end of BlackBerry 10 support, as well as the cloud id bug.
     
  8. AlexThibodeau

    AlexThibodeau

    Unity Technologies

    Joined:
    Jul 23, 2013
    Posts:
    309
    I was able to fix this and the fix will be coming out soon. Most likely 5.1.4
     
    Lloyd_RedironLabs and Wadjey like this.
  9. Wadjey

    Wadjey

    Joined:
    Feb 4, 2015
    Posts:
    244
    That's awesome, thank you Alex for your hard work, awaiting for other bugs to be fixed also (especially the Cloud ID bug)
     
  10. Sewmina7

    Sewmina7

    Joined:
    Apr 17, 2018
    Posts:
    6
    I also encountered this issue, I found another way around tho..

    bool wasFocused = true;

    void OnApplicationFocus(bool isFocus){
    if(isFocus){
    if(!wasFocused){
    //Do your code when focus is on

    wasFocused= true;
    }
    }else{
    wasFocused = false;
    }
    }
     
    Wadjey likes this.
unityunity