I have an Ionic App in the front end and a NodeJS app in the backend. I am trying to simulate a native app notification from front end.
Now arise two questions.
First there are two methods to register for GCM on google. One is via Console and one is via developers.google.com. While most of the tutorials go for the console method. Some go for the second method too. I am confused as to which method to follow as both give projectID and API Key.
Second Question. I am receiving a regestration ID in front end by
pushNot.on('registration', function(data) {
console.log(data.registrationId);
Now the problem is there are two values coming here, both of them different. Which one is correct and which one should be sent to backend??
Thanks