Reputation: 57
I have an android application connected with firebase
. When ever a new child is added to the database I need the user to be notified via a notification message. Moreover, in my application the user selects a code (eg: 71000,00100,90288) and this code is stored in shared preferences. I need the user to be notified when ever a child is added or modified, only as the code selected by the user. Any help, highly appreciated.Thank you so much in advance.
Upvotes: 0
Views: 367
Reputation: 76
Once i developed such application, in order to achieve this i used broadcastreceiver which was monitoring my data base for new information. (It is just suggestion) But u can still make use of this tutorial
Upvotes: 0
Reputation: 493
On firebase, we got callbacks to provide realtime database functionalities.
Ways of doing so:
Upvotes: 0
Reputation: 1794
if your server side is firebase ,to send notification when child added , you need to create a firebase cloud function which will do that so this what you will do :
Upvotes: 1