DesktopNotifications
DesktopNotifications copied to clipboard
OSX notifications
According to the readme, looks like this doesn't support OSX. Adding this issue as a tracking issue for that support
Have you thought of using commands? Like this
osascript -e 'display notification "hello world!"'
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 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.
@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 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.