Device Registration ID vs. FCM token

What is the difference between Device Registration ID when you get it via:

  1. http://ionicframework.com/docs/native/push/
    Push Plugin
    pushObject.on('registration').subscribe((registration: any) => console.log('Device registered', registration));

  2. http://ionicframework.com/docs/native/fcm/
    FCM Plugin

fcm.getToken().then(token=>{
 console.log(token);
})

Pure guess: I assume the push plugin gives you the “real” ID/token for each platform, while Firebase “replaces” the iOS token with their own platform token, that is then internally translated to a real iOS token when pushing.

1 Like