{ "id": "162618", "key": "TIMOB-23783", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2019-10-03T17:10:06.000+0000", "created": "2016-08-16T20:48:21.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "handoff", "qe-5.5.0" ], "versions": [ { "id": "18253", "name": "Release 5.5.0", "archived": false, "released": true, "releaseDate": "2016-09-13" } ], "issuelinks": [], "assignee": { "name": "apetkov", "key": "apetkov", "displayName": "Angel Petkov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-12-02T23:06:27.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "When attempting to handoff a titanium app from an iOS10 device to an iOS8 device, {{continueactivity}} does not fire. This issue does *NOT* occur between an iOS9 -> iOS8 or iOS10 -> iOS9.\r\n\r\n*Note:* _It takes ~35 seconds for the iOS8 device to see the handoff app from the iOS10, this may be related to the iOS8 devices refresh time on Apple's side, but it may be worth investigating why it doesn't initially register the app as available for handoff, as it does between iOS9/8._\r\n\r\nh3. TEST CODE:\r\n{code:java}\r\nTi.API.info(\"Creating activity...\");\r\nvar win = Ti.UI.createWindow();\r\nwin.add(Ti.UI.createLabel({text: \"Check logs\",color: \"white\"}))\r\nvar activity = Ti.App.iOS.createUserActivity({\r\n activityType:'com.foo.message',\r\n title:'Handoff Messenger',\r\n userInfo:{\r\n msg: 'Tag! You\\'re it!'\r\n }\r\n});\r\n \r\n \r\n//if(!activity.isSupported()){\r\n// alert('activity is not supported');\r\n//} else {\r\n\tTi.API.info(\"Activity is supported...\");\r\n activity.becomeCurrent();\r\n//}\r\n \r\nactivity.addEventListener('useractivitywascontinued', function(e) {\r\n alert('Activity moved to a different device.');\r\n});\r\n \r\nTi.App.iOS.addEventListener('continueactivity', function(e){\r\n Ti.API.info(\"continueactivity was fired\");\r\n if (e.activityType === 'com.foo.message' && e.userInfo.msg) {\r\n alert(e.userInfo.msg);\r\n }\r\n});\r\n \r\nwin.open();\r\n\r\n/** -- tiapp.xml --\r\n \r\n\r\n\t\r\n\t\t\r\n\t\tNSUserActivityTypes\r\n\t\t\r\n\t\t\tcom.foo.message\r\n\t\t\tcom.foo.bar\r\n\t\t\r\n\t\t\r\n\t\r\n\r\n \r\n**/\r\n{code}\r\n\r\nh2. Steps to Reproduce\r\n1. Ensure that both iOS8 / iOS9 devices are:\r\n- Logged into the same iCloud account.\r\n- Connected to the same WiFi Network.\r\n- Bluetooth enabled.\r\n2. Create a classic mobile application.\r\n3. Apply the above test code to the app.js file.\r\n4. Run the app to both devices.\r\n5. Launch the app on the iO10 device.\r\n6. Launch the app through Handoff on the iOS8 device either by:\r\n- Swiping up from the app icon present on the lock screen.\r\n- Double tapping the home button and selecting the app.\r\n\r\nh2. Actual Result\r\n\r\niOS10: Activity moved to a different device.\r\niOS8: App Launches but continueactivity does not appear as an alert or in the console logs.\r\n\r\nh2. Expected Result\r\n\r\niOS10: Activity moved to a different device.\r\niOS8: continueactivity was fired should appear as an alert & in the console logs.", "attachment": [], "flagged": false, "summary": "iOS: Handoff continueactivity is not firing from iOS10 to iOS8", "creator": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "environment": "iPhone 6S (10.0, 9.3.3, 8.2) Device\r\nMac OSX El Capitan 10.11.6\r\nTi SDK: 5.5.0.v20160816120242\r\nAppc Studio: 4.7.0.201607250649\r\nAppc NPM: 4.2.7\t\r\nApp CLI: 6.0.0-25\r\nXcode 8.0 beta 6 (8S193k)\r\nNode v4.4.7\r\n", "closedSprints": [ { "id": 1169, "state": "closed", "name": "2019 Sprint 22", "startDate": "2019-10-21T15:38:21.747Z", "endDate": "2019-11-03T15:38:00.000Z", "completeDate": "2019-11-04T18:36:57.022Z", "originBoardId": 114 }, { "id": 1170, "state": "closed", "name": "2019 Sprint 23", "startDate": "2019-11-04T18:38:14.526Z", "endDate": "2019-11-17T18:38:00.000Z", "completeDate": "2019-11-18T16:38:18.423Z", "originBoardId": 114 }, { "id": 1171, "state": "closed", "name": "2019 Sprint 24", "startDate": "2019-11-18T16:40:09.114Z", "endDate": "2019-12-01T16:40:00.000Z", "completeDate": "2019-12-02T23:06:24.654Z", "originBoardId": 114 }, { "id": 1172, "state": "closed", "name": "2019 Sprint 25", "startDate": "2019-12-02T23:08:39.644Z", "endDate": "2019-12-15T23:08:00.000Z", "completeDate": "2019-12-16T05:54:54.518Z", "originBoardId": 114 }, { "id": 1165, "state": "closed", "name": "2019 Sprint 20", "startDate": "2019-09-23T15:38:43.949Z", "endDate": "2019-10-06T15:38:00.000Z", "completeDate": "2019-10-07T18:33:11.953Z", "originBoardId": 114 }, { "id": 1168, "state": "closed", "name": "2019 Sprint 21", "startDate": "2019-10-07T18:35:57.052Z", "endDate": "2019-10-20T18:35:00.000Z", "completeDate": "2019-10-21T15:38:00.182Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "394893", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~htbryant] did you mention to me that there's an update on your findings here?", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-08-31T06:06:25.000+0000", "updated": "2016-08-31T06:06:25.000+0000" }, { "id": "451825", "author": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing issue as “Cannot Reproduce”. Updating the code may not reproduce the issue reported, or be a valid test case.\r\n\r\nAxway Appcelerator Studio, build: 5.1.4.201909061933 \r\nmacOS : 10.14.6\r\nNode.js Version : 8.9.1\r\nnpm Version : 5.5.1\r\nAppcelerator CLI : 7.1.1\r\nTitanium CLI\r\nCLI Version : 5.2.1\r\nnode-appc Version : 0.2.49\r\nTitanium SDKs : 8.2.0.GA\r\n", "updateAuthor": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-10-03T17:10:06.000+0000", "updated": "2019-10-03T17:10:06.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }