Push Notifications with Firebase and OneSignal

旧时模样 提交于 2020-01-01 06:37:08

问题


I'm looking for some guidance.

I'm using Firebase as the backend server for an app I'm building and I would like to alert users when somebody has either liked or disliked some content the user generated.

I understand that Firebase offers cloud messaging through which I can target very specific users and send updates to them; I have implemented that functionality. However, I would like to send updates based on changes in the database, and, as far as I understand, FCM is not built for this purpose.

I have come across OneSignal and it seems promising. Has anybody implemented this with Firebase and could it do what I'm looking for?

Thanks!


回答1:


I have it set upon such a way that when a message is send by a user to another user, a notification is also send via OneSignal. You just need to store the OneSignal userId in a node with the firebase user UID. I you like someone's content, then that would also send a notification out directly to the other user.



来源:https://stackoverflow.com/questions/41350202/push-notifications-with-firebase-and-onesignal

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!