iOS Push notifications with a .p8 key not working from Firebase

APNs authentication key (.p8)

I have tried sending to only iOS devices from the firebase console and also by topic however nothing is getting to the device.

I have added the GoogleService-Info.plist file to the app and deployed to the App Store.
I am using @capacitor-community/fcm in the App.

I am testing in production as it didn’t work in dev with a provisioning profile.
Everything works ok for Android.

Any suggestions on how to troubleshoot?

ios doesn’t support PWA…
you can search on the google, but this is my last information.


Its a mobile in the App Store not a PWA.

I have followed the Instructions here:

I have also tried following the instructions here however the code errors in Xcode at Messaging.messaging().apnsToken = deviceToken

with the error

Cannot find 'Messaging' in scope.
Cannot find 'InstanceID' in scope.
1 Like

I got it working using this guide here by Simon Grimm:
Not sure what is up with the Capacitor site guide but it doesn’t work.