Firebase Invalid Registration on iOS

Hello,

I am using the capacitor push notifications along with firebase.
Android works perfectly, but iOS never get the messages.

Using firebase console, i can send a push for both platforms and they get it.
But using the device token, it works for android but it complains about iOS token, InvalidRegistration.

The android token looks like this:
cRpVf5fS4WI:APA91bGcb_MspvHFTvkuFNoST9oNatvVG8Q95RvoL8ZmQ7n8-tjAJYhTA4kaGoW-RjXuZtfHgcWj4e_L2_rd5rNLFOYjwrLBEw9zErQtmIM0R1hr1XCGXMqE11iMmFgQqef9Uoe_dVBx

and the iOS looks token like this:
C65B91B67913CBD803E347Es27FDE7vA6D5B5C43738390DAD2B68FF47C80F8F8

They look quite different, so i imagine iOS one may be wrong…

The code:

if (this.platform.is(“mobile”) && this.platform.is(“hybrid”)) {

  PushNotifications.addListener(
    "registration",
    (token: PushNotificationToken) => {
      
      console.log(token);
      
    }
  );

}