Using cordova plugin ktekosi-phonegap-plugin-push
, I get the registrationID
var push = PushNotification.init({ "android": {"senderID": "my sender ID"}});
push.on('registration', function(data) {
console.log(data.registrationId);
document.getElementById("fcm_id").innerHTML = data.registrationId;
});
So I can use it by the server to send notification through FCM.
How can I get this registrationID
fixed for all time? Is this an app specific ID or a user specific ID?