Schutt
Schutt

Reputation: 1134

iOS Firebase Push Notification - Token received but push not working

I am currently developing an App with push notifications using Capacitor. I followed their guide for the implementation online and everything works so far. I am receiving a token & it is successfully sent to my backend. The problem I am facing right now is that when I try to send a push to that deviceToken via firebase admin SDK the push never reaches my phone (the same is true, when I try to target the whole iOS platform via Firebase Cloud Messaging).

I am not sure why I don't receive any pushes (I have tested it on 2 different devices -> both receive their pushToken, but none of the receive pushes, everything works just fine on android). Do you have any ideas what the problem might be here?

Upvotes: 1

Views: 2734

Answers (2)

Maziar Saadatfar
Maziar Saadatfar

Reputation: 1895

you should enable the capability of push notification and enable background mode such as:

and you should go to your firebase project settings/cloud messaging/ add or insert your APNs Authentication Key from apple developer account

Upvotes: 2

Efe Dönmez
Efe Dönmez

Reputation: 1

I faced the same issue, and the solution is to delete all push notification certificates associated with the project on Apple Developer and use a key instead.

Upvotes: 0

Related Questions