How to use Push Notifications in Xamarin Forms
Asked 07 September, 2021
Viewed 2.2K times
  • 55
Votes

I have an app using Xamarin.Forms targeting IOS, Android and WP 8.

I need push notification feature in my app.

I have seen the pushsharp demos and it seems promising. But all the codes I have seen are done separately for each platform.

I would like it to be done in the Xamarin.Forms project, somewhere in the App.cs so that I don't need to repeat the code for registering device, and handle how push notifications should be processed.

Any help would be greatly appreciated. Sample codes or tutorial references are welcome.

Edit : I implemented it based on Idot's answer. Here is the link for my answer.

6 Answer