How use FCM push in NextJS app
Okay I dont understand how we implement FCM push notification using novu in NextJS app. Because Ive added FCM to my workflow but I never receive the notification in my NextJS . My FCM (with service workers) integration seems to be good because Ive test it and its workring. FCM seems to use tokeen to authenticate a user but how novu know this token ?
2 Replies
OKay we have to set device token : https://docs.novu.co/integrations/providers/push/fcm#setting-device-token
But how sync every token with every user ?
Novu
Firebase Cloud Messaging (FCM) - Novu
Learn how to use the Firebase Cloud Messaging (FCM) provider to send push notifications using Novu
@loup
above doc section requires
subscriberid
, providerId
and deviceTokens
here subscriberId is unique for one user so devuceTokens can be stored for all users.