sorry for Off-Topic, but I would like to display this notification under Windows. What kind of object is trayIcon?In windows I can show a system notification from tray icon using this code,
B4X:Dim jo As JavaObject = trayIcon jo.RunMethod("displayMessage",Array As Object("Hello, World", "notification demo", "INFO"))
Dim jo As JavaObject = icon1
jo.RunMethod("displayMessage",Array As Object("Hello, World", "notification demo", "INFO"))
I've tried this. But in the notification, it's showing apple script icon instead of my application icon. How can I change that?See this answer: https://stackoverflow.com/a/34225861/971547
Should be simple to port it with jShell.
Dim j As Shell
j.InitializeDoNotHandleQuotes("notify","osascript",Array As String("-e",$"display notification "New notification" with title "Title" sound name "Funk""$))
j.Run(-1)
I don't think that you can change this icon as it is not your app that displayed the notification.I've tried this. But in the notification, it's showing apple script icon instead of my application icon. How can I change that?