Shivam Tripathi
Shivam Tripathi

Reputation: 1493

Not Receiving push notifications from firebase

I checked my provisioning profiles and all are fine as i used the profiles in a demo provided by firebase, & i am receiving push notifications from that demo project. Issue is In my main project I am using :

Still I am not able to receive push notifications in my project. Let me know where is i am missing something.

Upvotes: 24

Views: 27816

Answers (3)

Nelu
Nelu

Reputation: 18680

Fixed mine by adding this to AppDelegate.

func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
    Messaging.messaging().apnsToken = deviceToken
}

I have FirebaseAppDelegateProxyEnabled set to false.

Source

Upvotes: 3

Ashish Sharma
Ashish Sharma

Reputation: 663

As you have tried refreshing the certificates and checking that other things are valid, try one more thing. In your info.plist file set

FirebaseAppDelegateProxyEnabled = YES

This worked for me. Image

Upvotes: 25

Shehata Gamal
Shehata Gamal

Reputation: 100503

1-Make sure bundle id is the same

2-Changed the .p12 certificate in firebase

3-Downloaded google-plist in project

Upvotes: 2

Related Questions