Forked from git.sr.ht/~whereswaldon/niotify
Go to file
Greg 83dc8d6db5 example/example.app: Update Info.plist 2020-07-07 10:09:02 -04:00
android example/example.app: Update Info.plist 2020-07-07 10:09:02 -04:00
example example/example.app: Update Info.plist 2020-07-07 10:09:02 -04:00
macos Add notification center delegate, some clean-ups. 2020-07-03 16:34:29 -04:00
.gitignore example/example.app: Update Info.plist 2020-07-07 10:09:02 -04:00
LICENSE chore: add license 2020-06-20 12:19:17 -04:00
README.md docs: include info on helper JAR 2020-06-20 16:11:32 -04:00
go.mod Initial MacOS implementation. 2020-06-26 21:29:29 -04:00
go.sum Initial MacOS implementation. 2020-06-26 21:29:29 -04:00
niotify_android.go bugfix: include package source code 2020-06-20 16:00:04 -04:00
niotify_darwin.go example/example.app: Update Info.plist 2020-07-07 10:09:02 -04:00
niotify_linux.go bugfix: prevent linux code from building for android 2020-06-20 16:06:20 -04:00
niotify_unsupported.go Initial MacOS implementation. 2020-06-26 21:29:29 -04:00
notification_manager.go bugfix: include package source code 2020-06-20 16:00:04 -04:00

README.md

niotify

Cross platform notifications for Gio applications.

Status

This repo is experimental, and does not have a stable interface. Currently niotify only supports the following OSes:

  • linux (x11/wayland doesn't matter so long as dbus is used for notifications)
  • android

Contributions of support for other platforms are welcome! Send inquiries and patches to my public inbox for now.

Use

niotify requires a replace directive in your go.mod to add features to an underlying JNI library. This should be temporary.

For now, add:

replace git.wow.st/gmp/jni => git.wow.st/whereswaldon/jni v0.0.0-20200620152723-b380472956a0

Additionally, this package requires a helper JAR archive to function on Android. You can generate this jar file with:

javac -target 1.8 -source 1.8 -bootclasspath $ANDROID_HOME/platforms/android-29/android.jar ./android/NotificationHelper.java
jar cf NotificationHelper.jar ./android/NotificationHelper.class

Place this JAR file in the main package of your Gio application so that it will automatically be bundled into your APKs.

See the package documentation of ./notification_manager.go for usage information.

Name

go => gio

notify => niotify