IOS 8 Action extension for selected text in Safari

I cannot get Action Extensions to work with selected text in safari. There is a rule in the internal activation rules that allows text, but the extension is not available when I select text.

0
mobile-safari ios8 action ios8-extension
source share
1 answer

You need to enable NSExtensionActivationSupportsWebURLWithMaxCount to make the extension available in Safari.

When you create a target extension template other than the UI, an Action.js file is automatically created from the template. Edit the file to send the selected text using

document.getSelection().toString() 
0
source share

All Articles