'I am getting FCM firebase token but not getting notification. Also I am not able to check whether the token is valid or not

Its working on android but not on IOS

currently I am getting this token

:edpGGNf8N0k7mrIwbYWgyX:APA91bF50DO7DOMoIt2sQ2Sp2ptDqIQl1RxKtWbWu-Y3OaSTpsoXObhGyU4wxtpZZxjR7zYHVsEmgwIehMBIFRo4_OmVMhXVovksQVAGRAgT8SShd3Nofm0W72lMhD7orJnHCX61YOeJ

General:

  • iOS: 10.15.6
  • ionic version: 6.11.8
  • cordova-plugin-fcm-with-dependecy-updated: ^6.4.3
  • @ionic-native/fcm : ^5.36.0

what could be the issue. How to fix this?



Solution 1:[1]

You must define APNS authentication key in the Apple developer account and download it:

enter image description here

and go to your firebase console: Project Settings/Cloud messaging

enter image description here

then upload the key you defined to this section in bottom of the cloud messaging section in your iOS app:

enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Maziar Saadatfar