Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-20220

iOS: Ti.App.iOS.continueactivity not being fired

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 5.1.1
    • Fix Version/s: Release 5.4.0
    • Component/s: iOS
    • Labels:
    • Environment:

      Xcode 7.2
      Titanium SDK 5.1.1GA
      iOS 9.1

    • Story Points:
      5
    • Sprint:
      2016 Sprint 07 SDK

      Description

      Issue Description

      In a manner similar to Handoff (https://wiki.appcelerator.org/display/guides2/Handoff+User+Activities), using the Ti.App.iOS.UserActivity API to implement Universal Links in an app. This was to connect my website with the app. Basically this was to allow Safari users to open thea app via a link on the website.

      In the app there is following event handler:

      Ti.App.iOS.addEventListener('continueactivity', function(e){ 
           if (e.activityType === 'NSUserActivityTypeBrowsingWeb') { 
                var url = e.webpageURL; 
                // Display relevant content 
           } 
      }); 
      

      This would listen for the continueactivity event to be fired by iOS and capture the URL from the UserActivity in the function parameters. Then it would display relevant content based on the URL.

      This all worked fine on SDK 5.0.2. But after switching to SDK 5.1.1 it seems as though the 'continueactivity' event is never being fired.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hansknoechel Hans Knöchel
                Reporter:
                rramirez Ricardo Ramirez
                Reviewer:
                Angel Petkov
                Tester:
                Harry Bryant
              • Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code