Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5049] iOS: continueactivity event not being fired when user taps Core Spotlight search item

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2017-07-03T21:59:15.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterAndrewJ
AssigneeShak Hossain
Created2017-06-21T21:39:23.000+0000
Updated2017-07-03T21:59:15.000+0000

Description

Steps to Reproduce

var searchableIndex = Ti.App.iOS.createSearchableIndex(); 

if (searchableIndex.isSupported()) {
    Ti.App.iOS.addEventListener('continueactivity', onContinueactivity);
}

function onContinueactivity(e) {
    var modelId;
    Titanium.API.info('Ti.App.iOS:continueactivity' + e.activityType);
    
    // A Spotlight search result was opened
    if (e.activityType === 'com.apple.corespotlightitem') {
       //opens specific screen 
       modelId = e.searchableItemActivityIdentifier;
    }
}

Actual Result

In the iOS Simulator it works but on my iPhone 6s Plus running iOS 10.3.2 it just opens the app and doesn't go to the specific screen results.

Expected Result

Should open the app and open the correct data on the screen.

Attachments

FileDateSize
.log2017-06-21T21:39:24.000+00001074977
diagnostic7502056096903977215.log2017-06-21T21:39:36.000+0000351325

Comments

  1. Sharif AbuDarda 2017-06-27

    Hello, Please share a full reproducible code for us to test. Also, provide your test environment details.

JSON Source