FirebasePushNotificationPlugin icon indicating copy to clipboard operation
FirebasePushNotificationPlugin copied to clipboard

Ios push notifications not working

Open OoonaNet opened this issue 4 years ago • 1 comments

I have been implementing push notifications for a Xamarin app I have written with Plugin.FirebasePushNotification in Android all works as expected but in IOS the OnNotificationReceived is not triggered.

I have an Apple developer account.

I have downloaded GoogleService-Info.plist

I have configured the Info.plist to enable Background Modes and Remote notifications and set FirebaseAppDelegateProxyEnabled to no.

I have added a certificate to the Bundle.

And still, when I send the message using postman { "registration_ids": ["My device registration id"], "aps" : { "alert" : { "body" : "great match!", "title" : "Portugal vs. Denmark", "content_available": 2, "priority":"high" }, "badge" : 1 } }

I get success in postman but nothing in the device.

Any assistance will be much appreciated.

OoonaNet avatar May 18 '21 19:05 OoonaNet

Not sure if you are still having this issue, I have been looking at it for days, found this

https://www.youtube.com/watch?v=GNBuaAB8nR8

I needed to get a certificate from my apple developer account which I imported into FCM console, now push notifications work.

It seems a step that is missing from the getting started guide for later versions of ios

bigpjo avatar Jan 14 '22 17:01 bigpjo