Uploaded image for project: 'Appcelerator - INBOX'
  1. Appcelerator - INBOX
  2. AC-4125

Ti.App.iOS 'continueactivity' event is not fired on distribution build


    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: None
    • Component/s: Titanium SDK & CLI
    • Labels:


      SDK: Tested on 5.3.0 and 5.2.2 (probably happening on other versions).

      I have a Titanium app that's handling an incoming Universal Link by capturing the iOS `continueactivity` event. This is the code I have:

            Ti.App.iOS.addEventListener('continueactivity', function(e){
                if(e.activityType === "NSUserActivityTypeBrowsingWeb"){

      This 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.

      SO question: http://stackoverflow.com/questions/38503510/ti-app-ios-continueactivity-not-working-on-production-build

      How to Reproduce:

      1. Clone the Ti Example App
      2. On `alloy.js`, add the iOS `continueactivity` event handler as shown above.
      3. 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:

        <?xml version="1.0" encoding="UTF-8"?>
        <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
        <plist version="1.0">

      4. 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):

            "applinks": {
                "apps": [],
                "details": [
                        "appID": "YOUR.example.app.id",
                        "paths": [ "*"]

      Once your app and your domain are configured:

      1. Run your app in debug mode. The `continueactivity` will be fired and your code executed.
      2. Build a distribution app, run it. The `continueactivity` will NOT be fired and your code will NOT be executed.


          Issue Links



              • Assignee:
                shossain Shak Hossain (Inactive)
                abdielou Abdiel Aviles
              • Watchers:
                1 Start watching this issue


                • Created:

                  Git Integration