If you have every used <NavigationWindow> in your Alloy code you know that it will only work with iOS. But what if you don’t want to have to duplicate all your code for android? // index.xml <Alloy> <NavigationWindow id=”win1″ platform=”ios”> <Window class=”container”> <View> <Button onClick=”showDetails”>Show Details</Button> </View> </Window> </NavigationWindow> // Terrible we are duplicating code!!
Caveat This feature requires a Pro or Enterprise subscription! Prerequisites Download the geofence module If you want to use Android simulator: Genymotion 2.8.1+ installed for best results. Install the correct files for google play to use the Genymotion simulator Setting up the tiapp.xml file For iOS you will need to give your app some permissions
If you have ever tried to run the android emulator with Appcelerator then you know how slow it can be. The best solution is to use a third party solution called Genymotion. This is a simulator, not a emulator, so it will allow the android environment to run much faster. (See emulator vs simulator for
Lets take a look around the Appcelerator (Appc) Studio IDE. Appcelerator Studio is an Eclipse-based IDE that provides a single, extensible environment to rapidly build, test, package, and publish mobile apps across multiple devices and OSs. Assumptions Downloaded and install the Appc Studio already Have node.js installed Installed the Command Line Interface (CLI) Have Xcode