I'm building an iOS Share extension. I need to grab some data from web pages so I'm using a JavaScript file to grab that data and send it back to the app to be used in the extension.
I noticed the following. When I set the NSExtensionJavaScriptPreprocessingFile
key with my JavaScript file the SLComposeServiceViewController
is showing up perfect but without image!
Like this:
If I remove the NSExtensionJavaScriptPreprocessingFile
my SLComposeServiceViewController
shows up like this:
But I need to access to some data from the Webpage (the one I grab with JS) but I also need that image! I'm completely lost how to get both or I don't even know if that's possible because Apple docs are kind of confusing.
Thanks!