This question does not have to be with codes, but to understand the operation of the firebase.
I want to set up a system that notifies the user to an Android app through a PHP web service. From what I researched, the easiest way is to use firebase (and it worked perfectly for me), but I wanted to set up an independent webservice.
My question is:
How does the firebase notify the mobile? From what I've seen, we can make sure that the cell phone checks for every X minutes, but that would not consume enough data traffic?
How does firebase notify the user instantly? I wanted to understand this logic, to prevent the user from checking that there are new notifications every X minutes.