Skip to content
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

CapacitorJS support #28

Open
oddmario opened this issue Jun 24, 2023 · 4 comments
Open

CapacitorJS support #28

oddmario opened this issue Jun 24, 2023 · 4 comments

Comments

@oddmario
Copy link

oddmario commented Jun 24, 2023

What is the problem this feature will solve?

Currently CapacitorJS supports most of the Cordova plugins available out there, and I believe this project would work perfectly with it as well. I think the only issue we're facing here is how this project forces the project structure to match a Cordova application (put your NodeJS project in the www directory, etc)

It would be great if we can get this to work with CapacitorJS as well

What is the feature you are proposing to solve the problem?

Support the project structure of a CapacitorJS app

What alternatives have you considered?

https://github.com/hampoelz/Capacitor-NodeJS is an amazing alternative (which is still not so stable yet as mentioned by its developer), However it seems to be a different plugin (even if it relies on this project) with a completely different API.

For example, I currently can't specify when to start the NodeJS instance in the project of @hampoelz , it seems to automatically start on the launch of my application and I don't have the ability to change that behavior

Let me know if you need any contribution from my side, even if I am not that experienced with the native development of Android/iOS apps (hence why I develop my apps in JavaScript using Capacitor), I'll try to have a look at the project codebase and see what can be done

@staltz
Copy link
Member

staltz commented Jun 24, 2023

The Cordova plugin for nodejs-mobile is unmaintained. We need a volunteer to maintain it.

@hampoelz
Copy link

I'll add the support for manual start of the node.js runtime to my Capacitor-NodeJS plugin in the next weeks.

Regarding the stability of the project: I added the note that the project is still unstable, as I only tested basic functionality for now. However, since there were no real bug reports in the last years, I assume that you can use it without any problems.

The only thing I can't guarantee in the near future is IOS support, as I don't currently have a Mac to implement it. But I plan to borrow a friend's Mac for this purpose at some point.

@hampoelz
Copy link

@oddmario Starting the Node.js runtime manually has been added in Capacitor-NodeJS v1.0.0-beta.4.

@xeoshow
Copy link

xeoshow commented Sep 28, 2023

It looks like nodejs got official android version now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants