Community Questions & Answers

Passing events through modules

How can i pass events through module hierarchy? I have the main app.js, there i load the module welcome.js (with require("welcome") ) as a window and inside welcome i load modules home.js (the view containing the login and register buttons) and...

How to create a Geofence with Plot?

Hi, I have added the Plot module to my app and added the public key plus setup a notification and geofence in the plot dashboard. However I need to perform actions when the user enters the fence or leaves it. ~~~ var plot =...

modules extend

Hi there I have a stupid question about the modules. First I show the code. ~~~ exports.first = function(args) { //code } exports.second = function(args) { //code } ~~~ It is possible to pass data from one module to another? Hope it's not so stupid...

iOS module fails to load. Linker error.

I am developing iOS module for fetching device's orientation which uses CoreMotion. I created new module and added these lines: ~~~ -(void)_listenerAdded:(NSString *)type count:(int)count { if (count == 1 && [type...

How to call module method in js code

I have a module class: ~~~ @Kroll.module(name="TestHelpers", id="com.home.testhelpers") public class TestHelpersModule extends KrollModule { // Standard Debugging variables private static final String LCAT =...

adding external .a libraries to titanium module

Hi I'm attempting to add external .a libraries to a titanium module that I'm creating by dragging them to the xcode project. However, the .a files are not included in the resulting module zip package. How do I have the javascript app uses functions in...

wikitude working with titanium

Application type: mobile, Titanium SDK: 3.3.0, Platform & version: android : 4.4.2 Device : moto g, Host Operating System: OSX 10.9, Titanium Studio:3.3.0. Hello everyone, I am using the titanium wikitude module which I downloaded...

Facebook module problem with iOS 7

Hi, I'm developing a mobile app for iOS 7 and I use my own iPhone to proceed all tests. I'm trying the add a Facebook connexion possibility and everything work fine until I accept the application. I don't know if it's my code OR Facebook but it's not...

barcode scanner module

hi, i'm triyng to add [this](https://github.com/mwaylabs/titanium-barcode) barcode scanner. i downloaded it and copy into my project folder. i wrote in the 'tiapp.xml' this code: <modules> ...

Writing native module for tss transformations

Hi there, I'm wondering is it possible to write a native module, that would do tss transformations. Eg. I have element that should have 100px height. Since I'm using dp units, I need to do something like that: ~~~ // alloy.js const DEFAULT_W = 480; const...

iOS Block Call

I am trying to develop a native (iOS) Titanium module. I am having trouble making a call to a named block function when it takes a pointer as an argument. Below is the simplest code snippet I could make that reproduces the error. In it I create 3 block...

Are there any way to hook openURL in tiapp.m

~~~ - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation { [launchOptions removeObjectForKey:UIApplicationLaunchOptionsURLKey]; [launchOptions setObject:[url...

Showing 1-50 of 1,821 1 2 3 4 5 637