Developing an Android version based on TriliumNotes-Server-vXX-linux-arm64.tar.xz #7120
-
Currently, I'm planning to develop an Android version using TriliumNotes-Server-vXX-linux-arm64.tar.xz. Would the TriliumNext project accept a pull request (PR) for this? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
You could do a proof of concept and we can see from there, if we integrate it in our repo or keep it separate. How do you plan to embed Node.js on Android? |
Beta Was this translation helpful? Give feedback.
-
Termux has already compiled and packaged a Node.js runtime that works on Android. By extracting the Node.js binary and its dependent .so libraries from Termux, we can bundle them into the app and use Java to create a subprocess to launch it. As long as Node.js itself doesn't need updates, in theory, future updates would only require rebuilding the APK with the latest version of Trilium—no changes to the Android-side code would be necessary. I've already completed a proof of concept. I'll publish the code once I've cleaned it up. |
Beta Was this translation helpful? Give feedback.
-
Another point that needs discussion is: since Android apps need to consider power consumption, they may frequently be started/stopped or have their processes forcibly terminated—could this potentially cause damage to the Trilium database? |
Beta Was this translation helpful? Give feedback.
You could do a proof of concept and we can see from there, if we integrate it in our repo or keep it separate.
How do you plan to embed Node.js on Android?