I created an application that uses firebase database and database storage. My application allows users to inform each other, but I'm not sure how to notify the user when they received a new message. I save all messages in a single node message. Then I save the message relationship in another node called "user-messages". How to track the "custom messages" node to warn the user that he has a new message? I am familiar with the types of observation events, etc. For example: .Value and .ChildAdded, but I'm not sure how to trigger an event to send a notification to the user.
edit: gave a little more clairity.
ios swift push-notification notifications firebase
Taylor simpson
source share