Launch Apple's Stocks app, with a particular stock selected
-
30-09-2019 - |
Pergunta
I would like to launch Apple's Stocks app to show information for a particular stock, on a non-jailbroken phone. I'm not interesting in how to get a quote or graph a stock myself, just opening Stocks.app.
I was hoping that the Stocks app would have a custom URL format, so opening a URL like stocks://AAPL
would do the trick. But I haven't found anything documenting such a scheme, and suspect it doesn't exist.
Any other ideas, or is it impossible to integrate with the native Stocks app?
Solução
It doesn't exist, Apple publishes a list of iPhone URL schemes - Mail, phone, text, Maps, YouTube, and iTunes.
Maybe you could just pull the stock info yourself? There must be some kind of web service you can use.
Outras dicas
Unfortunately this is not possible as Apple pulls its stock information from Yahoo! Finance. Maybe you can try opening a UIWebView/Safari and direct to the Yahoo! Finance as the next best thing?