Android notification panel

Kind all day!

I’m developing an app for iOS / Android and ran into an interesting problem.

When testing, the following behavior was revealed: the application does not go into the background when the notification panel is opened. This applies only to Android, on iOS everything works as expected.

Can someone tell me which event can be processed to move the application on pause when opening the notification panel of Android?

At the moment I’m using the following code:

[lua]

local appState = function( event )

    if event.type == “applicationStart” then – App start

    

        print(“start”)

    

    elseif event.type == “applicationExit” then – App exit

        

        print(“exit”)

    

    elseif event.type == “applicationSuspend” then – App to back. Phone call, Sleep, etc.

        print(“suspend”)

        

        if (inGame == true) then

        pauseGameFunction()

        end

    elseif event.type == “applicationResume” then – App to fore

       

        print(“resume”)

    end

end

Runtime: addEventListener (“system”, appState)

[/lua]

Anyway, thanks to everyone!

As far as I know, there is no way to detect the notification panel.

As far as I know, there is no way to detect the notification panel.