How to check if the app is in the foreground or the background (Tutorial)

Hello all,

I’m finally back with a tutorial on my other post How to check if your app is in the foreground or background - #3 by jaythemanchs (Sorry it took so long).

Requirements:

  • User Authentication
  • Real-time Database

Below is the integration of the system

Users Page

Other Users Profile Page

Summary

That’s it for now, I am still working on Get Together but you can check out the website: https://shorturl.at/fFJL1.

Happy coding

Jacob

2 Likes

Good idea but I suggest you use seconds since 1970 because it will be much easier to compare.

1 Like