this post was submitted on 25 Nov 2023
2 points (100.0% liked)

Emacs

311 readers
3 users here now

A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!

Get Emacs

Rules

  1. Posts should be emacs related
  2. Be kind please
  3. Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.

Emacs Resources

Emacs Tutorials

Useful Emacs configuration files and distributions

Quick pain-saver tip

founded 1 year ago
MODERATORS
 

Hi all,

I am using native Emacs build for Android.

Is there a way to send notification from my Emacs app to Android using some package?

Has anyone found a way or a workaround?

top 3 comments
sorted by: hot top controversial new old
[–] Psionikus@alien.top 1 points 10 months ago

Long-term, lisp dynamic module -> NDK and you need some manifest permissions in the APK

Years ago I had some experience using a dynamic language with the JNI to introspect the Java interfaces and call them. Fun times.

I can probably scaffold up some work, but only if people show me that they want it.

[–] MitchellMarquez42@alien.top 1 points 10 months ago

If you're using the build that shares a user ID with Termux, you can use the termux-api shell commands to send a notification that way. You will probably have to re-package/sign the termux-api package (i just tried the F-Droid version, it won't install when you have the Emacs compatible termux).

[–] publicvoit@alien.top 1 points 10 months ago

I do have a setup with Android, Syncthing and Tasker. Whenever Tasker sees a specific text file when checking periodically, it generates a notification for me.

This gives me the possibility to notify me on all different stuff just by creating a text file whose content is the notification message.

You can use that for Android-local notifications as well as for notifications from any device with access to the Syncthing share.

HTH