edsnider / localnotificationsplugin

Local Notifications Plugin for Xamarin and Windows
MIT License
198 stars 82 forks source link

macOS support in 3.0.0-beta14 - not working #37

Open sunnysonic opened 6 years ago

sunnysonic commented 6 years ago

Thanks for your plugin!! Very much appreciated!

I'm developing a XForms app that will be available for MacOS as well. You commented, that the beta includes support for macos, but currently i can't get it to work. Is there some permission or anything else that needs to be set for it to work? (running on high sierra) There is no sample project for me to have a look at either. that's why the bother...

best regards

edsnider commented 6 years ago

@sunnysonic can you be a little more specific about what isn't working for you? Are you getting an error? what is the specific behavior your running into? What version macOS? (it is easiest to use the issue template so these things are captured).

sunnysonic commented 6 years ago

I'm Using MacOs High Sierra (10.13.3) with the latest Visual Studio Mac(7.4) and the latest Xamarin.Forms (2.5.0.280555). As well i have installed the nuget of your plugin in the beta version 3.0.0 into all projects and i'm using netstandard 2.

Notifications are showing on all platforms, except on osx.

On IOS I had to add a class to the appdelegates FinishedLaunching method to display the notification on newer than IOS11 while the app is open. Something like: completionHandler(UNNotificationPresentationOptions.Alert);

Do i need to do something like this for the Mac as well?

Right now simply nothing is happening. Not seeing any errors and nothing.

edsnider commented 6 years ago

@sunnysonic It is working for me on 10.7+ ... if the app is actually in the foreground you may have to open your Notification Center to see the notification.