Project: titanium
Issue TIMOB-20183: iOS: Ti.App.getArguments failing after opening app from spotlight Search
*Description:* When I set my app to index some content in order to use the new Spotlight Search feature, I got an error when I select an item in the search that should be open using my app, the error happens if I try to use Ti.App.getArguments() in some part of my app; code that I use for push notifications and deep linking features. *The Error:* This error happens if I try to access Ti.App.getArguments() from any point in the app: {code:bash} [ERROR] 2015-12-21 18:23:50.839 Civico[21446:1435686] -[NSUserActivity boundBridge:withKrollObject:]: unrecognized selector sent to instance 0x7fef2a700b50 [ERROR] Script Error { [ERROR] column = 54; [ERROR] line = 116; [ERROR] message = "-[NSUserActivity boundBridge:withKrollObject:]: unrecognized selector sent to instance 0x7fef2a700b50"; [ERROR] sourceURL = "file:///Users/cristianv/Library/Developer/CoreSimulator/Devices/1F81EA0F-DAC5-46B0-A9FF-1BD44DD24486/data/Containers/Bundle/Application/2BE7BB9B-6438-4C07-A314-006A879D1CC4/Civico.app/app.js"; [ERROR] stack = "[native code]\nresumeEvent@file:///Users/cristianv/Library/Developer/CoreSimulator/Devices/1F81EA0F-DAC5-46B0-A9FF-1BD44DD24486/data/Containers/Bundle/Application/2BE7BB9B-6438-4C07-A314-006A879D1CC4/Civico.app/app.js:116:54"; [ERROR] } {code} *To reproduce:* 1) Insert Ti.App.getArguments into sample app in the alloy.js file https://github.com/appcelerator-developer-relations/appc-sample-appsearch/blob/master/app/alloy.js#L14 and run the app. 2) Close the app 3) Perform a search and open one item. 4) Whatch the app crash. *Relevant Environment data:* {code:bash} Appcelerator Command-Line Interface, version 5.1.0 Operating System Name = Mac OS X Version = 10.10.5 Architecture = 64bit # CPUs = 4 Memory = 4.0GB Node.js Node.js Version = 0.12.5 npm Version = 2.11.2 Titanium CLI CLI Version = 5.0.5 node-appc Version = 0.2.31 Titanium SDKs 5.1.1.GA Version = 5.1.1 Install Location = /Users/cristianv/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA Platforms = android, mobileweb, iphone git Hash = e46100b git Timestamp = 11/24/15 11:07 node-appc Version = 0.2.32 Xcode 7.2 (build 7C68) - Xcode default Install Location = /Applications/Xcode.app/Contents/Developer iOS SDKs = 9.2 iOS Simulators = 9.2 Watch SDKs = 2.1 Watch Simulators = 2.1 Supported by TiSDK 5.1.1.GA = yes EULA Accepted = yes Teams = none {code}
Story points: 3