{ "id": "161924", "key": "AC-4125", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-07-29T17:02:27.000+0000", "created": "2016-07-22T00:26:47.000+0000", "labels": [], "versions": [], "issuelinks": [ { "id": "52250", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "154221", "key": "TIMOB-20220", "fields": { "summary": "iOS: Ti.App.iOS.continueactivity not being fired", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-07-29T17:02:27.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "SDK: Tested on 5.3.0 and 5.2.2 (probably happening on other versions).\r\n\r\nI have a Titanium app that's handling an incoming Universal Link by capturing the iOS `continueactivity` event. This is the code I have:\r\n\r\n{code:javascript}\r\n if(OS_IOS){\r\n Ti.App.iOS.addEventListener('continueactivity', function(e){\r\n if(e.activityType === \"NSUserActivityTypeBrowsingWeb\"){\r\n alert(e.webpageURL);\r\n }\r\n });\r\n }\r\n{code}\r\n\r\nThis code works perfectly while the app is being debugged but the event is not fired on the distribution build. I have reproduced this behaviour with the Ti Example App.\r\n\r\nSO question: http://stackoverflow.com/questions/38503510/ti-app-ios-continueactivity-not-working-on-production-build\r\n\r\nHow to Reproduce:\r\n\r\n# Clone the Ti Example App\r\n# On `alloy.js`, add the iOS `continueactivity` event handler as shown above.\r\n# Add the `associated-domains` entitlement (this must also be configured with the app id on the Apple Dev Center). In order to configure this with Ti you must add a file called `Entitlements.plist` like:\r\n{code:xml}\r\n\r\n\r\n\r\n\r\n\tcom.apple.developer.associated-domains\r\n\t\r\n\t\tapplinks:example.com\r\n\t\r\n\r\n\r\n{code}\r\n# Add a file called `apple-app-site-association` to the root of your HTTPS domain (eg: https://example.com). The file is a JSON object as described in the [Apple documentation](https://developer.apple.com/library/ios/documentation/General/Conceptual/AppSearch/UniversalLinks.html):\r\n{code:json}\r\n{\r\n \"applinks\": {\r\n \"apps\": [],\r\n \"details\": [\r\n {\r\n \"appID\": \"YOUR.example.app.id\",\r\n \"paths\": [ \"*\"]\r\n }\r\n ]\r\n }\r\n}\r\n{code}\r\n\r\nOnce your app and your domain are configured:\r\n# Run your app in debug mode. The `continueactivity` will be fired and your code executed.\r\n# Build a distribution app, run it. The `continueactivity` will NOT be fired and your code will NOT be executed.\r\n", "attachment": [], "flagged": false, "summary": "Ti.App.iOS 'continueactivity' event is not fired on distribution build", "creator": { "name": "abdielou", "key": "abdielou", "displayName": "Abdiel Aviles", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "abdielou", "key": "abdielou", "displayName": "Abdiel Aviles", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "391269", "author": { "name": "abdielou", "key": "abdielou", "displayName": "Abdiel Aviles", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I just tested with the 5.4.0 nightly and it works!", "updateAuthor": { "name": "abdielou", "key": "abdielou", "displayName": "Abdiel Aviles", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-07-22T00:51:38.000+0000", "updated": "2016-07-22T00:51:38.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }