-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
Running example code results in network error at RN fetch() #5
Comments
Downgrading first to |
Can you try making a release build? (would rule out the case where JS is running on your computer. it would run in the phone) |
Oh, and are you running it in an emulator or device? (If device:) Is it 64bit or 32bit (e.g. which |
I am running in the emulator with a The release build has the same issue I think, but suppresses the error, so nothing happens when clicking link. (have also tried But I still have one
|
If you have a device, experiment with that. With emulators, I've had issues in the past when it comes to networking. |
Yes thx, I was about to do that, but just tested with Update: My own phone is 64-bit Samsung A3 (https://en.wikipedia.org/wiki/Samsung_Galaxy_A3_(2015)). Going to look into the drawers for an old phone :) |
I just tried a real Samsung S3 Mini, but unfortunately it has the same release build issues as occurred with the emulator. |
I though this may be the cause: facebook/react-native#15100 (comment) So I downgraded to 0.45.1 but unfortunately with the same result. Afterwards for good measure I also tested with a Probably the node app is not responding. I cannot load the URL from a webview on the device as well. |
FYI: I've tried many different ways to get NodeJS running on Android and spent yesterday all-day compiling without success. |
Hi @staltz I got it working by refactoring to J2V8: Steps:
Then (PS You don't need a For some reason I had to redefine I now know much more on J2V8 now (see Viable options to running NodeJS on Android (Aug 2017)) and am convinced that both react-native-node and node-on-android would benefit by using this as a basis to build on further. It would not add any overhead in the way the project is working now, and gives some powerful options in e.g. communicating between RN and Node. I will keep you posted on more findings. |
One thing not working well yet in above setup is starting and stopping the Update I am going to refactor to a bound foreground sticky |
Any progress here? |
This is current status: eclipsesource/J2V8#332 |
No progress? |
@erikdung i managed to get the whole react - node thing working with a modified version of this project that uses J2V8 instead with the new docker build system in J2V8 this was quite easy to get working.. in fact i would advise @staltz to build this project on top of J2V8, not reinventing the wheel and join forces on making that core module better instead having said that, on the whole node-on-android concept i found there where problems stopping and starting the service thread running node, leading to crashes of the app unfortunately i do not have time now to investigate further, as i am working on innercircles, a tech initiative and movement for people who care :) |
@aschrijver thanks for all this investigation, I think you have a very good point about J2V8, and I'll give it a try soon enough. I'll comment back on this thread later. |
that would be cool! i'll jump back to node on android as soon as i have time again.. ps. in the J2V8 project we discussed some interesting ideas to grow the project, make it a solid base for any V8 on android.. the discussion is a bit silent now, but should've blow some more steam into that: eclipsesource/J2V8#335 |
@staltz [1]: syntax error: '☺t⌂544O☺☻♣4' unexpected |
The NodeJS Binary Included won't work because it is compiled for arm-v7 not x86 |
I've created an issue on NodeBase repo, asking for compiling instructions does anyone have knowledge on how to patch and compile nodejs for Android? |
@p30arena I wrote something here: https://stackoverflow.com/a/45649995/8295283 hope this helps you a bit :) |
First of all: Thanks for this project!
I am checking out the
/example
code and when running as described in the README and without modifications I get following error:I will look into this further, but maybe there is something obvious I am overlooking..
(Versions: yarn 0.24.6, npm 4.2.0, ubuntu 16.04, (local) node: 7.10.1)
PS I will try again with downgraded node on ubuntu system
The text was updated successfully, but these errors were encountered: