{ "id": "147276", "key": "TIMOB-18854", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2015-08-19T08:29:04.000+0000", "created": "2015-04-25T02:33:48.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [ { "id": "48083", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "148704", "key": "TIMOB-19003", "fields": { "summary": "iOS9: Deprecate openParentApplication:reply: ", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-23T22:29:53.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "In order for the watch to get certain things from the iOS app, the handleWatchKitExtensionRequest method in the app delegate needs to be implemented. I imagine this could be a system wide event in Ti similar to the resume event.\r\n\r\nhttps://developer.apple.com/library/ios/documentation/WatchKit/Reference/WKInterfaceController_class/#//apple_ref/occ/clm/WKInterfaceController/openParentApplication:reply:\r\n\r\nSome other links:\r\n\r\nhttps://www.bignerdranch.com/blog/watchKit-extensions-communicating-with-your-parent-application/\r\n\r\nhttp://www.kristinathai.com/send-data-to-parent-ios-app/", "attachment": [], "flagged": false, "summary": "iOS: Apple Watch support to the open the iOS app in the background via openParentApplication", "creator": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "subtasks": [], "reporter": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "environment": null, "comment": { "comments": [ { "id": "350816", "author": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "body": "Ref. this https://gist.github.com/benbahrenburg/7812ae9259b8e06fff10\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/pull/6803", "updateAuthor": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "created": "2015-04-26T20:21:22.000+0000", "updated": "2015-05-06T13:43:11.000+0000" }, { "id": "351796", "author": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "body": "Ben's gist above works fine but the caveat is you have to have the iOS app open in order for it to work. The reason is according to these docs: https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplicationDelegate_Protocol/#//apple_ref/occ/intfm/UIApplicationDelegate/application:handleWatchKitExtensionRequest:reply\r\n\r\n\"Because this method is likely to be called while your app is in the background, call the beginBackgroundTaskWithName:expirationHandler: method at the start of your implementation and the endBackgroundTask: method after you have processed the reply and executed the reply block. Starting a background task ensures that your app is not suspended before it has a chance to send its reply.\"\r\n\r\nThis will need to be implemented as well in order to give a Ti app time to boot.", "updateAuthor": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "created": "2015-05-06T13:24:54.000+0000", "updated": "2015-05-06T13:24:54.000+0000" }, { "id": "356657", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This will be placed out of sprint at the moment in favour of watch connectivity for watch OS2, and Release 4.3.0.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-07-02T02:10:01.000+0000", "updated": "2015-07-02T02:10:01.000+0000" }, { "id": "360316", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "As Apple is gearing us towards watchOS2 and watchConnectivity, closing this as it is support for watchkit 1.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-08-19T08:29:04.000+0000", "updated": "2015-08-19T08:29:04.000+0000" }, { "id": "415440", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as Won't Fix with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-23T22:29:53.000+0000", "updated": "2017-03-23T22:29:53.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }