Following the guide on Capacitor’s site for push notifications, I am unable to receive any push notification inside my iOS device.
I’ve triple checked that the Apple Push key and sandbox/production certificates are uploaded
I have successfully registered to the APNs and get a token value, but when I use Firebase to send a message to the token, I receive no notification.
I’ve also tried to send a message directly using this solution Apple Push Notification Using ASP.Net and I can send the message successfully, but I receive no response at all.
That looks right. There are two different tokens. There is the Apple APN token (which a quick Google search says is hexadecimal) and then the Firebase token. That looks like the Firebase token which is required if you are using Firebase.
and in import { PushNotifications, Token } from ‘@capacitor/push-notifications’;
already i am getting device token then why firebase plugin all this required ?
i am using PHP for server side i am sending through APNS but i am not receiving notification in my device how this is possible please help
Are you using Firebase to send the push notifications or connecting directly to Apple?
If using Firebase, you need to use the Firebase token instead of the APN token which can be configured as shown here.
That guide is complete for setting up Firebase and Push Notifications. You have to use Firebase to send to Android devices so in my mind it makes sense to use it for both