0

Since the new release of Firebase you are able to send push notifications from the console to specified clients with Firebase Notifications. But for a chat app I need Firebase to watch a node for new children and send the push notifications to those clients.

Is Firebase capable of this and if yes what is the best way to do this?

MJQZ1347
  • 2,607
  • 7
  • 27
  • 49

1 Answers1

-1

With Firebase client sdk you can register listeners for node events on the client side. Then Firebase will do the magic to notify the client on node events.

gipsy
  • 3,859
  • 1
  • 13
  • 21
  • I want to send iOS push notifications to users, when the app is closed. – MJQZ1347 Jun 07 '16 at 17:05
  • @MJQZ1347 got it. You can send push messages to iOS using Firebase. https://codelabs.developers.google.com/codelabs/firebase-ios-swift/#6 – gipsy Jun 07 '16 at 17:08
  • https://firebase.google.com/docs/cloud-messaging/ios/client – gipsy Jun 07 '16 at 17:32
  • @gipsy sending messages through the firebase database will only work when the app is active. Firebase notifications and firebase cloud messaging allow the app to receive messages when it's not active, but not to send them from device to device. Sending messages in that scenario requires access to a trusted key, which means it should only be done in a trusted process. – Frank van Puffelen Jun 07 '16 at 17:45