Is it possible to implement APNS with Firebase Firestore?
I've managed to send a push notification to devices via Firebase Cloud Messaging from the web console but my app needs to have push notifications for changes in the database, such as when the user receive a like or a friend request.
Is there any workaround?
Thanks for pointing me in the right direction.
You need to use Firebase Cloud Functions with the FireStore triggers. The first link has your use case.
There are some great tutorial videos on Firebase's YouTube account. It even includes adding a Firestore Trigger.
You can also send device-to-device push notifications, which work great for 1-1 relationships (1-1 chat, for instance). To achieve that, you can leverage this endpoint https://fcm.googleapis.com/fcm/send.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With