Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How implement Push Notifications firebase xamarin.ios c#

I'm developing an application that works on the iPhone through the xamarin.ios with firebase backend. I want Push Notifications FCM Firebase, but I couldn't, I want that code in AppDelegate.cs

like image 997
mahmudamen Avatar asked Jan 30 '20 10:01

mahmudamen


People also ask

Can I use Firebase for push notification to iOS?

For Apple client apps, you can receive notification and data payloads up to 4000 bytes over the Firebase Cloud Messaging APNs interface. To write your client code in Objective-C or Swift, we recommend that you use the FIRMessaging API.

Can Firebase send push notifications iOS simulator?

Push notifications are not available in the simulator. They require a provisioning profile from iTunes Connect, and thus are required to be installed on a device.


1 Answers

To implement Push Notifications firebase with xamarin.ios in C#, you can have a try with Xamarin.Firebase.iOS.CloudMessaging.

And there are detailed steps about setting-up-a-firebase-cloud-messaging-client-app-on-ios there.

Code example in AppDelegate and Sample project are also available.

Additional, here is document about creating push notification certificates and settings in iOS app.

like image 70
nevermore Avatar answered Oct 07 '22 19:10

nevermore