Cordova-plugin-fcm giving zero in token with real ios device (ionic)

I have taken the following steps:

  • created project in firebase console
  • ios app added
  • Package ID and .p12 certificate uploaded
  • added this FCM event
FCMPluginin.getToken(function(token){
  console.log("FCMPlugin.getToken token : ", token);
});

this works with beautiful real Android devices, also works fine on a simulator (ios), but it gives zero (token) in a real ios device.

enter image description here

+4
source share
1 answer

I solved my problem by enabling the ability to enable key exchange from the "Xcode Features" tab.

+1
source

Source: https://habr.com/ru/post/1668800/


All Articles