Closed abhiburk closed 2 years ago
I am currently facing the same issues ..i have checked around the web for pointers but resources on this are scarce
I did something like this and it worked
push: {
providers: [{
type: 'fcm',
phonegap: false,
id: process.env.FCM_SERVER_KEY
}]
},
okay..let me try that out
I get this error from my console when i try to sen a notification .
Error: Unknown registration id","stack":"Error: Error: Unknown registration
{ status: 'error', channels: { push: { id: undefined, providerId: 'push-fcm-provider' } }, errors: { push: 'Error: Unknown registration id' } }
this is how the send method is configured
await notify.send({ push: { id: 'xxxx', registrationToken: 'xxxxxxx', title: 'Hi John', body: 'Hello John! How are you?', icon: 'https://notifme.github.io/notifme-sdk/img/icon.png', }, })
Also what values am i supposed to use for the registrationToken and id in the send function?
I when using FCM push Please help me for id params in the config. What is the value for
id
in the below fcm. I tried secret server key and other keys bit I am not sure