on{X} is a website, api and android app which allows a developer to remotely write javascript functions triggered by native device events such as unlocking the phone, receiving a phone call, etc.
on{X} is a website, api and android app which allows a developer to remotely write javascript functions triggered by native device events such as unlocking the phone, receiving a phone call, etc. (see full list below)
What is on{X}?
- on{X} is a mobile application for Android that exposes the device triggers and actions through a JavaScript object, called ‘device’. Use the on{X} website to write JavaScript scripts (aka, rules) that use the ‘device’ object and ‘push’ them to your Android phone. When the on{X} app is installed on your phone, you can use on{X} website to remotely program your phone and create new personalized behaviors and experiences.
From the Blog:
A developer oriented service that enables us, the developers and technological enthusiasts, to easily program our mobile device to dynamically react to the continuously changing environment. The code we write is an action that we hook up to a sensor-based event. For example: “AC power disconnected” or “WiFi network detected”. Do you want some more sophisticated examples? How about “User mode-of-transport just changed from walking to driving” or “user left home”? For each such triggering event, we can easily create reactions. Instead of limiting the reaction to a simple list of actions, we are offering the full power of JavaScript. That’s right, you can push any arbitrary JavaScript code, remotely, down to your mobile device and hook it up to a continuous signals sensing framework that you only need to download and install once. The possibilities are wide open – you no longer need to worry about the target platform. Even better, we are offering the use of the advanced technology we put in the system that is constantly optimizing the power drain on the battery – you simply don’t need to worry about having a hot dead phone in your pocket after only 4 hours of use.
Prerequisites
- To get started with on{X} you don’t need any experience developing mobile apps. Basic JavaScript programming skills will do.
Triggers
- Triggers are events occurring on your phone, such as receiving a text message, unlocking the screen, finding a new WiFi network, etc. The ‘device’ JavaScript object, allows you to register a callback to be executed upon event triggering.
Actions
- Actions are operations supported by the ‘device’ JavaScript object, such as sending text messages, sending emails, launching a web browser, showing notifications, etc.
Installing, testing and debugging your rules
- on{X} requires you to register on their site with facebook in order to create rules to push to your android device. From the site you can update and edit rules at any times and view the console from the browser.