Empty extension items array when sharing a route from Maps.app

Originator:karpenko.misha
Number:rdar://18485887 Date Originated:29.09.2014
Status:Open Resolved:No
Product:iOS SDK Product Version:8.0.2
Classification:UI Issue Reproducible:Always
 
When user makes a route in Maps.app and taps "Share", a custom action extension is being shown as an option. When custom action extension is launched, self.extensionContext.inputItems is empty.

This custom action extension has a predicate as an activation rule:

<key>NSExtensionActivationRule</key>
<string>SUBQUERY(extensionItems, $extensionItem, SUBQUERY($extensionItem.attachments, $attachment, ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO &quot;public.item&quot;).@count > 0).@count > 0</string>

It declares clearly that it supports an extensionItems array that contains anything, but if it's not empty. Yet still the action extension is available as an option.

Steps to Reproduce:
1. Open Maps.app.
2. Make a route from any point A to any point B.
3. Tap "Share" icon in the top right.
4. Select any action or share extension.

Expected Results:
* Extension items array should contain some items 
OR
* Action extension with a clear predicate that doesn't allow empty extension items array won't be shown as an option.

Actual Results:
Action and share extensions are shown and being selectable.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!