Skip to content
View app.js
Ti.App.addEventListener("resume", function(){"Resume Event Fired");
Ti.App.addEventListener("resumed", function(){"Resumed Event Fired");
Ti.App.iOS.addEventListener("shortcutitemclick", function(e){
View readme.txt
//add ios9.1
View app.js
var win = Titanium.UI.createWindow({
title:'Demo', backgroundColor:'#fff',layout:'vertical'
var btnSpotLightSupported = Ti.UI.createButton({
top:20, title:'Is SpotLight Supported?',
height:60, width:Ti.UI.FILL
View idea.js
var qxCore = {
callbackWrappers : {
wrapperCounter : 0,
generateId : function(name){
return name + qxCore.callbackWrappers.wrapperCounter;
View TiJSObjectsExample.js
'use strict';
import View from 'view';
import Window from 'window';
// Example Usage
let win = new Window();
let view = new View({
top: 0,
View app.js
var win = Titanium.UI.createWindow({
Ti.Geolocation.preferredProvider = "gps";
Ti.Geolocation.purpose = "GPS demo";
Ti.Geolocation.trackSignificantLocationChange = true;
View app.js
var activity = Titanium.App.iOS.createUserActivity({
activityType : "com.appcelerator.handoff.example.browsing-location"
userInfo : someDictionary,
needsSave : false,
webpageUrl : "optional webpage",
title : "an example"
View TiApp.m
- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity
restorationHandler:(void (^)(NSArray *restorableObjects))restorationHandler
NSMutableDictionary *dict = [NSMutableDictionary
dictionaryWithObjectsAndKeys:[userActivity activityType],@"activityType",
if([userActivity title] !=nil){
[dict setObject:[userActivity title] forKey:@"title"];
View index.js
var btnAction = Ti.UI.createButton({
title:"I'm a button",
width:85, height:55, bottom:0, borderColor:"#999"

This pull request adds support for a Apple Watch Extension to be able to openParentApplication and have a Titanium application reply.

This pull request is related to the Jira ticket TIMOB-18854.

This pull request consists of a few different parts.

1.Application Delegate

This pull request adds a delegate method to Tiapp.m this delegate raises the Ti.App.iOS watchkitextensionrequest event. The userInfo provided by the extension openParentApplication is passed through to the watchkitextensionrequest event. The reply method of the delegate is captured and placed into an NSDictionary. This allows for the reply message to later be called as part of the sendWatchExtensionReply method.

Something went wrong with that request. Please try again.