DesktopNotifications icon indicating copy to clipboard operation
DesktopNotifications copied to clipboard

OSX notifications

Open derekantrican opened this issue 3 years ago • 6 comments

According to the readme, looks like this doesn't support OSX. Adding this issue as a tracking issue for that support

derekantrican avatar Aug 04 '21 19:08 derekantrican

Have you thought of using commands? Like this osascript -e 'display notification "hello world!"'

TheVeryStarlk avatar Nov 26 '22 14:11 TheVeryStarlk

i have an intel mac with osx monterey, which i think will be new enough (its out of support now but its on 12.7.1). Do you have any guidance on contributing? I guess all i would need to do is open that xcode proj and update the api?

cricketthomas avatar Nov 26 '23 19:11 cricketthomas

@cricketthomas Hey, my initial plan was to just create a slim wrapper around the native UNUserNotificationCenter API and call it via P/Invoke. The main concern would be how to handle the app bundle registration. IIRC in order to send notifications on IOS/OSX your app needs to be registered somehow.

We could check out other projects like Juce or Unreal Engine. They seems to have the local notifications on OSX figured out.

pr8x avatar Nov 27 '23 18:11 pr8x

@cricketthomas Hey, my initial plan was to just create a slim wrapper around the native UNUserNotificationCenter API and call it via P/Invoke. The main concern would be how to handle the app bundle registration. IIRC in order to send notifications on IOS/OSX your app needs to be registered somehow.

We could check out other projects like Juce or Unreal Engine. They seems to have the local notifications on OSX figured out.

Wouldn't registering it just be done in the Entitlements.plist (i am not super familiar either)? https://docs.avaloniaui.net/docs/distribution-publishing/macos MAUI has something similar https://learn.microsoft.com/en-us/dotnet/maui/ios/entitlements?view=net-maui-8.0&tabs=vs

cricketthomas avatar Nov 27 '23 23:11 cricketthomas

@cricketthomas Ah I see. I wonder if this could be done from code? Would love this library to be "plug-and-play" without having to go through extra build steps. But if it's unavoidable it's also OK.

pr8x avatar Nov 28 '23 19:11 pr8x