You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example of my current usage (badgeservice_darwin.go):
package main
import "github.com/progrium/darwinkit/macos/appkit"
type BadgeService struct{}
func (g *BadgeService) SetBadge(value string) {
app := appkit.Application_SharedApplication()
dockTile := app.DockTile()
if value == "" {
dockTile.SetBadgeLabel("")
} else {
dockTile.SetBadgeLabel(value)
}
}
Additional context
I am currently focused on macOS development so I haven't looked at Windows/Linux solutions yet (researching).
Relying on DarwinKit for this increases the app size to >35MB build and >25MB app.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Tauri and Electron allow setting a badge on the app icon.
Tauri
https://tauri.app/reference/javascript/api/namespacewindow/#setbadgecount
https://tauri.app/reference/javascript/api/namespacewindow/#setbadgelabel
Electron
https://www.electronjs.org/docs/latest/api/dock#docksetbadgetext-macos
Describe the solution you'd like
Expose an
app.SetBadge(value string)
method or similar to set an app badge on the dock icon.Describe alternatives you've considered
Import and use DarwinKit
Example of my current usage (
badgeservice_darwin.go
):Additional context
I am currently focused on macOS development so I haven't looked at Windows/Linux solutions yet (researching).
Relying on DarwinKit for this increases the app size to >35MB build and >25MB app.
The text was updated successfully, but these errors were encountered: