Ionic capacitor fcm token

Hi;
I’m having trouble with capacitor / push notifications & fcmToken (iOS):

  • For starters:
    – I do receive general cloud messages (from the console interface)
    – I don’t receive cloud messages targetted to a single FCM token
  • when I store the FCM token, and try to send a message to it directly, it’s not received:
PushNotifications.addListener('registration',
            (token: PushNotificationToken) => {
                this.saveToken(token.value); //this is the token I use to send the message to
       
            }
        );
  • when I send it by cURL:
     -H 'Authorization
: key=THIS_IS_THE_APPLICATION_TOKEN' \
     -H 'Content-Type: application/json; charset=utf-8' \
     -d $'{
  "registration_ids": [
    "THIS_IS_THE_STORED_TOKEN"
  ]
}
  • I get the following response:
{"multicast_id":5823259757733601565,"success":0,"failure":1,"canonical_ids":0,"results":[{"error":"InvalidRegistration"}]}

Can anyone help me why the token is invalid? (while I do receive general notifications)

Hi, I am facing this issue just now, did you solve?

Also having the same issue. Did you find a solution?