Apps are in an offline state. Whenever I turned on data (internet), in the blink of an eye, the apps become online. In another instance, I turned on data (but I have no internet), and apps are not becoming online.
I am assuming:
There is something in the device that somehow figures out if my device has an internet connection or not (maybe by trying to connect to a site?)
If it figures out my device has an internet connection, it notifies the apps to connect to the internet.
Since my device got internet and the apps are notified, now we need another program(s) to share (manage) internet between the device got internet and those apps.
Now to elaborate on my question, in point 1, the thing/program which figures out whether my device has internet or not, what is it called? And in point 3, what is the program's name, and how does it share the internet with apps? Or in other words, in which way can I manage my device's internet with my user-space applications, and how do I manipulate it?
If it helps, I know (more correctly, read) DNS resolution, with destination IP address apps connected to the server.