Thanks for the clarification, @omz. Shortly before you replied, I thought that I should just try that and it worked.
When I asked about it, I thought maybe it would be necessary to specify Chrome as an argument to sharedApplication()
or some other method. I'm glad it's really just that simple.
I'd like to suggest that the Pythonista documentation be updated to explain that using webbrowser.open()
doesn't work to open other applications via the application sharing extension/mechanism. That is, add a note about that and give an example of the UIApplication.sharedApplication()
method that works instead. These pages seem like good places for this update:
- http://omz-software.com/pythonista2/docs/ios/urlscheme.html#launching-other-apps
- http://omz-software.com/pythonista2/docs/library/webbrowser.html#webbrowser.open
(And the corresponding documentation for the newer Pythonista.)
If the documentation had mentioned this already, it would literally have saved me hours of frustration. I thought I was using webbrowser.open()
incorrectly.
Also, what's happened with the "list of third-party applications that have URL schemes" that was available at http://handleopenurl.com/? It appears to be defunct. Is there a replacement resource?