Closed Peh4 closed 4 years ago
My object looks like this:
const push = new PushNotifications({
gcm: {
id: config.gcm.key,
phonegap: true
},
apn: {
token: {
key: certificates.apn,
keyId: config.apn.keyId,
teamId: config.apn.teamId
},
production: (config.env === 'production'),
hideExperimentalHttp2Warning: true
},
});
const data = {
custom: event.metadata,
title: subject,
body,
topic: config.gcm.topic
};
await core.push.send(registrationIDs, data);
Works fine for me. I'd suggest mirroring the above code. I don't know too many details beyond that, I did the minimum to make it work with native http2 and not much else
+1 Same issue here
Can you please let the issue open, if someone want to share a solution ?
Hello I has memory leaks with appfeel/node-pushnotifications so i only switched to node-pushnotifications-http2 and upgraded node to 8.8.1
I have now this error :
the topic is set in my notification object, as it was before i don't hunderstand