Share extension not activates for apple notes app

659 views Asked by At

Works fine with All the apps except ios Notes App.

Found a solution to solve this

How to share notes data with share extension in iOS 9?

But Am using Subquery as NSExtensionActivationRule. So Unable to add NSExtensionActivationDictionaryVersion in plist.

Is anyone know how to add NSExtensionActivationDictionaryVersion in subquery ?

Thanks in advance.

2

There are 2 answers

0
Ilya Muradymov On

1

The same image i have, as in mentioned answer, just add this parameter.

0
arsenius On

The following works for me with Notes.app, News.app, selected text, and urls and pdfs in safari:

SUBQUERY (
    extensionItems,
    $extensionItem,
    SUBQUERY (
        $extensionItem.attachments,
        $attachment,
        ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.url"
        OR ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO "public.text"
    ).@count >= 1
).@count >= 1

Note the >= 1 which differs from Apple's examples. Without that it doesn't work for News or Notes.