How to use Push Notifications in Xamarin Forms

后端 未结 6 1169
北海茫月
北海茫月 2020-11-28 01:15

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

6条回答
  •  情深已故
    2020-11-28 02:01

    This is not possible to do in pure Xamarin.Forms but is relatively trivial to implement a solution whereby they can be handled in the App.cs (although this will require platform specific implementations).

    Take a look in the IXForms implementation within the Xamarin.Forms.Labs project where the notifications are channeled back to Forms project:

    https://github.com/XLabs/Xamarin-Forms-Labs

    and more specifically:

    https://github.com/XLabs/Xamarin-Forms-Labs/tree/master/src/Platform/XLabs.Platform/Mvvm

提交回复
热议问题