Hi everyone,
i need to put some code in the Main Activity with B4XPages because i need to handle the _Pause event, _Resume event, etc... and do things that are not page related (reason why i don't need those events in a particular B4Xpage).
Similiar to what happends in iOS in the Main with Application_Active etc...
Example:
I send a notification, in the FirebaseService a need to know if the app is in background or not, so i thought to do like so:
but this does not work because of this:
** Activity (main) Pause event (activity is not paused). **
So, in conclusion, how can i test if my app is in background?
Thanks in advance
i need to put some code in the Main Activity with B4XPages because i need to handle the _Pause event, _Resume event, etc... and do things that are not page related (reason why i don't need those events in a particular B4Xpage).
Similiar to what happends in iOS in the Main with Application_Active etc...
Example:
I send a notification, in the FirebaseService a need to know if the app is in background or not, so i thought to do like so:
B4X:
If IsPaused(Main) == False Then
...
Else
...
End If
** Activity (main) Pause event (activity is not paused). **
So, in conclusion, how can i test if my app is in background?
Thanks in advance