-
Notifications
You must be signed in to change notification settings - Fork 9
Android: Run Node.js based on native App lifecycle #900
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
jermy-c
commented
Sep 25, 2025
- Run Node.js based on native App lifecycle
- Remove Capacitor-nodejs dependency
- Capacitor Bridge is not used anymore since Node.js runs a local server
c3dcea1 to
2b75820
Compare
|
I built it on github CI and installed it on a real Android device (where Mustang Android from master is already running well), and it's crashing on startup. |
|
Sorry, I haven't written the code to download the libnode to the project. And there's also a linking error I'm seeing whenever the libnode is missing you have to open Android Studio to relink it. Also this got broken again since 57843e6 because I was trying to reuse the V8 instance so when the app pauses we can stop node but not reinitialize V8. |
|
The functions to start and stop Node.js work now but both are too slow. When the startup is too slow, it causes the frontend to throw an error stating that the backend is not present. When stopping Node.js is too slow, it causes the app to crash because the old Node.js instance is still present. But this only happens when tap the back button to exit and quickly open the app again. |
62d98d2 to
fad20fc
Compare
|
I've rebased to master. |
7d2a658 to
3640c13
Compare