Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19467] Ti.App.iOS.SearchableItemAttributeSet.thumbnailURL is not working

GitHub Issuen/a
TypeBug
PriorityHigh
StatusResolved
ResolutionCannot Reproduce
Resolution Date2017-10-25T21:55:49.000+0000
Affected Version/sRelease 5.0.0
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterFokke Zandbergen
AssigneeHans Knöchel
Created2015-09-04T12:48:13.000+0000
Updated2017-10-25T21:55:49.000+0000

Description

The [thumbnailURL](https://appcelerator.github.io/appc-docs/latest/#!/api/Titanium.App.iOS.SearchableItemAttributeSet-property-thumbnailURL) property is not working as you can see when you use [~cng]'s [sample app](https://github.com/cheekiatng/Titanium-Search-Sample-App/blob/master/Resources/app.js#L73) and uncomment the thumbnailData lines and use the same file paths for thumbnailURL.

Comments

  1. Hans Knöchel 2017-07-08

    The issue is that the property is handled like a (remote) URL, but instead it should be handled like a file-URL. The following should fix it (I need to setup the test-environment first):
       _attributes.thumbnailURL = [NSURL URLWithString:[[[TiBlob alloc] initWithFile:value] path]];
       
  2. Hans Knöchel 2017-10-25

    Cannot reproduce the issue - the URL is indeed referenced correctly if a relative (local) file is provided. Blobs are not supposed to work as tried above.

JSON Source