In this blog, you will learn how to sent FCM push notification in Xamarin.Forms app
Many developers facing the problem how to test the custom push notification without api this blog will helps you.
Register token
Register Notification service in your xamarin.iOS and Xamarin.Andorid apps and get push notification token.
Set POST Method
Url
Sent your notification to following address
https://fcm.googleapis.com/fcm/send
Headers
Add below headers in postman for FCM
Content-Type : application/json
Authorization:key= ******your server key from firebase console****
Get your Server key
https://console.firebase.google.com/
Go to firebase console with your credentials then go to your app setting you can see the could messaging section see below image
Body
Sent your notification as JSON format
Body->Raw->JSON
Sent iOS
Below json format for iOS
Sent Android
Add below json for Android push notification format
I hope you have understood you will learn how to sent FCM push notification in Xamarin.Form app
Thanks for reading. Please share your comments and feedback.
Happy Coding :)
That's amazing informative post, I want to add one more thing, If you want to make your web visitor to your subscriber then you should definitely check gravitec lifetime deal Best push notification for website ever.
ReplyDelete