Permanently observe network changes in Ionic with firebase backend

@mich356c: It’s not only good enough, but very helpful, actually. Thank you, I appreciate your help! :slight_smile:

Getting the wifi-ssid already works using the WifiWizard plugin in combination with the native network-information plugin. Hence, users can already mark their home wifi and I can store it’s ssid in the database -> everything fine so far.

I like your idea of letting the app send an update to the database every x seconds/minutes. That could work… I learned that I can use setInterval() and others for this. I will give it a try.

Regarding the architecture: Keeping in mind, that the function with setInterval() should always be called, even when running in background, what would you suggest from where to call it?

Is there any possibility, to have it called even when the user didn’t open the app actively? Maybe you can trigger the initialization with a request from the server or anything similar?