Native IOS app and node.js

Iosnode.jsNative

Ios Problem Overview


Is it possible to create a native ios app with node.js, and is so does anyone have any examples?

Ios Solutions


Solution 1 - Ios

I search for this constantly, and although many of these answers are quite right in citing that V8 isn't iOS compatible, it seems that running a nodelike environment within iOS isn't all that impossible.

The first option I discovered was called "Neunode" (hasn't been updated in a year). Here are some reference links if you want more:


Nodelike / Node.app Project

> Nodelike is the core framework of the Node.app project, which has the goal to implement a roughly Node.JS-compatible interface using JavaScriptCore.framework on iOS 7 and OS X Mavericks.

Example: Interpreter

> an example project implementing a Node.JS interpreter as an iOS app, > utilising the Nodelike framework.

Edit:

It is still "not viable for serious projects" but checkout updates at: https://github.com/node-app/Nodelike


Overall, The Node.app Project looks promising, be sure to checkout their website

Solution 2 - Ios

Yes! You can run Node applications on iOS devices. Node.JS fork JXcore has implemented SpiderMonkey JavaScript engine in addition to Google's V8. The source code repository is available from Github

Solution 3 - Ios

No. But you can write native applications in Javascript (which is the same language as Node - which is server run javascript) by using a tool like Unity.

Also, welcome to SO!

Solution 4 - Ios

No you can't create a native iOS app using Node.js. Unless you find a means of installing Node.js, which would be very custom and would require rooting the phone.

May I ask what you're trying to achieve? I could point you in the right direction. Unless you're just curious as to whether Node would work on iOS.

Solution 5 - Ios

There is a relatively new project trying to archive this: http://nodeapp.org/

It is under active development and already supports most basic stuff and filesystem access.

Solution 6 - Ios

I should mention you can compile node.js into an arm-emu-arm mode and it runs on iOS without issue. It could "hypothetically" be accepted by Apple's app store, but there's several hundreds of reasons why no person (let alone app store) would accept a node app yet.

Solution 7 - Ios

As Nuray Altin have mentioned, you can do it with JXcore and its plugin for Cordova. Here is an article on that subject: Develop an iOS Application with Node.js and Cordova.

It goes step by step through the process (compiling JXcore from sources, installing Apache Cordova, creating an app etc.)

Solution 8 - Ios

You can't run a proper Node.js environment inside a native iOS App, due to sandbox limitations.

Having said that, there are several projects that enable you tu embed/run Node.js applications inside a native (iOS/Android) App.

This is maybe the most popular project: http://jxcore.io/

This is a sample iOS project that use JXcore: https://github.com/jxcore/jxcore-ios-sample

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionHello WorldView Question on Stackoverflow
Solution 1 - IoselectblakeView Answer on Stackoverflow
Solution 2 - IosNuray AltinView Answer on Stackoverflow
Solution 3 - IosK2xLView Answer on Stackoverflow
Solution 4 - IosJackView Answer on Stackoverflow
Solution 5 - IosSam RijsView Answer on Stackoverflow
Solution 6 - IosTrevorView Answer on Stackoverflow
Solution 7 - IosinfografnetView Answer on Stackoverflow
Solution 8 - IosnickshoeView Answer on Stackoverflow