F FrankDev Active Member Licensed User Longtime User Jun 3, 2017 #1 Hello I have the following problem. My app receives Firebase messages and writes them in an SQLlite database. Then FB forward the messages to the currently open activity. So far so good. If now the lockscreen turns on or the smartphone The screen turns off - and I again activate or unlock. The message was not extended. Actually no problem I can read everything from the database. But the activity_resume event is not raised?!? How do I recognize my app back 'ontop' regards Frank
Hello I have the following problem. My app receives Firebase messages and writes them in an SQLlite database. Then FB forward the messages to the currently open activity. So far so good. If now the lockscreen turns on or the smartphone The screen turns off - and I again activate or unlock. The message was not extended. Actually no problem I can read everything from the database. But the activity_resume event is not raised?!? How do I recognize my app back 'ontop' regards Frank
Erel B4X founder Staff member Licensed User Longtime User Jun 4, 2017 #2 You can handle the UserPresent event with PhoneEvents. It is raised when the screen is unlocked (assuming that the app is currently running in the background). Upvote 0
You can handle the UserPresent event with PhoneEvents. It is raised when the screen is unlocked (assuming that the app is currently running in the background).
F FrankDev Active Member Licensed User Longtime User Jun 5, 2017 #3 i'll try. thanks for great support Upvote 0