Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
when is application background triggered ? — Gideros Forum

when is application background triggered ?

piepie Member
edited August 26 in General questions
Hi I am trying to trigger event application_background on android gideros player, but it doesn't seem to be working.
Application_suspend works as expected.
I was wondering if it is platform specific or if there is some other reason

Thank you :smile:

Comments

  • piepie Member
    Thank you, unfortunately that doesn't help.

    From the documentation APPLICATION_BACKGROUND should be called after APPLICATION_SUSPEND (which is called for every app suspension like the low battery notification)

    https://wiki.giderosmobile.com/index.php/Event.APPLICATION_BACKGROUND
    https://wiki.giderosmobile.com/index.php/Event.APPLICATION_SUSPEND

    but if I put this in my main lua and run it in my gideros player, when I press the home button I only get "suspend" (if I try listening to APPLICATION_BACKGROUND alone it doesn't work either)
     
    stage:addEventListener(Event.APPLICATION_SUSPEND, function(event)
    	print("EVENT SUSPEND")
     
    end)
     
     
    stage:addEventListener(Event.APPLICATION_BACKGROUND, function(event)
    	print("EVENT BACKGROUND")
     
    end)
Sign In or Register to comment.