How do I make a cross platform local notification functionality

I've been trying to make a local notification functionality for my cross platform app.
After going through some packages that claimed they could do this without any luck I tried using the DependencyService to implement these features per platform.

But when I try to follow the examlpe for creating local notifications on Android I get the following build error at this line of code:

NotificationManager notificationManager = Forms.Context.GetSystemService(Forms.Context.NotificationService) as NotificationManager;

Member Ándroid.Content.Context.NotificationService' cannot be accessed with an instance reference; qualify it with a type name instead

I'm kinda lost here. Are there any examples of how I can make this functionality?

Answers

Sign In or Register to comment.