JyOS - Native iOS Apps written in JavaScript with Visual Studio on Windows
What is JyOS ?
JyOS is a JavaScript v 3 runtime for iOS (iPhone, iPod and iPad) with a specific
limited API to write data-centric native app.
The development platform is Windows and the preferred IDE is Visual Studio 2010
or
Visual Web Developer Express (free).
You can also develop with other text editors and any operating systems with a text
editor and a ftp program.
JyOS has nothing to do with HTML5 or PhoneGap. JyOS is JavaScript using the iOS API natively.
Current State Of JyOS
After feedbacks in october 2012, I concluded the following:
Titanium would always be a better solution on multiple platforms that everything I could build by myself on iOS only.
I would have to reduce greatly the app features to be able to published it to the App Store.
So I decided to put JyOS on hold and focus on a first app written in JyOS named
jsonB which is avalaible on the app store.
Hello World
/*
Hello World Sample
*/
JyOS.App.Name = "Hello World App 0";
var mainTableView = new JyOS.TableView("mainTableView", "Hello World");
mainTableView.init = function () {
this.addSection("JyOS - JavaScript For iOS");
this.addData({ Type: STRING, Id: 'HelloWorldControl', Value: 'Hello World' });
this.click = function (control) {
alert("Hi " + control.Id);
}
}
function main() {
JyOS.open(mainTableView);
}
UI Tour
From a UI point of view, JyOS offers access to a limited set of the Cocoa Touch framework's
features.
UITableView with search and advanced search
UIActionSheet
UIWebView
UIAlertView
MKMapView
Api Tour
JSON
Http get and post
localStorage
SHA1 and MD5 Hash
Triple DES Encryption (to decrypte/encrypte data received/sent from a Windows Server)
Text file
Unzip embed zip file
Display embed HTML and Markdown
Location (GPS)
Email
Camera
Contacts (Read only)
Calendar (Read only)
Audio
Code Samples
How to deploy the JyOS app on your device on Windows
Save the JyOS app somewhere on your disk. Plug in your device into your PC. iTune should be
started. In the LIBRARY section select Apps. Drag and drop the app file into the Apps section.
Sync your device.
Other IDE and editor
JyOS toolkit was developed to work with Visual Studio, but it can also be used from any editor.
How to create a project?
Unzip the file JyOS App Template.
Delete the .jpg, csproj, .vstemplate files in the root.
How to compile a JavaScript application?
JyOS.Cmd -Compile .\main.js
How to compile a JavaScript application and start the JyOS Win Console?
JyOS.WinConsole.exe -s ".\bin\Debug\main.js" -a "Api Demo"
Configuring the JyOS Win Console to work with Notepad++.