2
This question is not about codes but understanding the functioning of firebase.
I want to build a system that notifies the user in an Android app through a PHP web service. For what I researched, the easiest way is using firebase(and worked perfectly with me), but wanted to set up an independent web service.
My question is :
How does firebase notify the phone? From what I saw, we can make the mobile check if there is any notification every X minutes, but this would not consume enough data traffic?
How does firebase notify the user instantly? I wanted to understand this logic, to prevent the user to keep checking that there are new notifications every X minutes.
Thank you, Reply clarified the operation. Now could you let me know if it’s bad practice to make a service call yourself every x minutes to check notification instead of using firebase ?
– saidmrn
Not exactly. The only problem is the one you’ve already identified: consuming more data traffic, and consuming resources (memory and cpu) from the device.
– ramaral