How to open Stocks app on ios from my app? - ios

I know that popular apps usually have own links, f.e. whatsapp://app will open WhatsApp or if you have Instagram installed, it will open instagram.com/... links.
In my app, I would like to open the iOS "Stocks" app (it is installed by default). Do they have deep linking and can I for example in my app open the link like stocks://AAPL to navigate to the Apple stock prices page?
UPD: I've found that stocks:// really opens the Stocks app :)
but now the question still is how to open the exact company in it

Found that https://stocks.apple.com/symbol/AAPL will do what I want :)

Related

How to force to open app by Universal Link in Swift likes iOS Notes app

I run into an issue with Universal Link that once the Universal Link is opened by Safari, it won't able to open by its app.
Seem iOS does remember the last app used to open the link.
But when I copy the link into iOS Notes app, long-press, select Open in "App Name" and the issue is gone! (Check the screenshot)
Does anybody know how to force to open an app like iOS Notes app?
Or does anybody know how to check whether the URL has been remembered to open by Safari by iOS?
I did try by open(_:options:completionHandler:) & specific options [.universalLinksOnly: true] but it doesn't work
Thanks all 🙏🏿
This article may help.
When a user browses your website in Safari and taps a universal link in the same domain, the system opens that link in Safari, respecting the user’s most likely intent to continue within the browser. If the user taps a universal link in a different domain, the system opens the link in your app.

iOS 9+ Universal Links don't work from Google apps

The company I work for told me to ask the following:
When a universal link is tapped in other apps (native Apple apps, Slack, etc.) our app is opened, but if the same link is tapped in any Google app (Hangouts, Inbox, etc.) the universal link is not opened directly by our app.
We set the Google app to not open links inside it and we don't have Chrome installed on devices where the app was tested.
Does anyone have the same problem? Is there any solution for this?
Unfortunately this is the expected behavior. Universal Links do not work directly from within most Google apps — you need to have the link open a web page containing a button or other link within. That button or link can be a Universal Link, which then opens the app.
Here is more information about where Universal Links currently work and do not work.

iOS Deep linking and Universal link, how to deep link in ios

I read that from iOS 9, Universal links are introduced. Please explain the different between Deep-linking and universal links.
My objective is, a link will be sent in mail to customers. Let the mail says there is an offer for item A, and a link. On clicking the link
If the app is installed then, open the app and launch specific screen showing item A
If app is not installed then, download it from App Store and open it and launch specific screen showing item A
What if there is a user login feature?
If app is installed and user is not logged in then,
open the app
Launch login screen
After login is success launch specific screen showing item A.
How can these be implemented? How the links are configured for these?
As of iOS 9.2, released December 8th, 2015, Apple has sounded the death knell for URI scheme based redirects, the standard for deep linking for the last seven years. They’ve decided that Universal Links are the future.
Earlier in order to use a URI scheme, you have to manually handle the case of the app not being installed.The problem with this is that when the app is not installed, it shows a ‘Cannot Open Page’ error. I’m sure you’ve all seen it. It’s the bane of deep linking.We were able to bypass this in iOS 7 and iOS 8, but it is not possible now from iOS 9.
Get more details form this link
To clarify, 'deep links' are simply links that, when clicked, cause your app to open directly to content. Universal Links are a type of deep link, as are URL scheme links, but neither is a perfectly bulletproof solution right now so to cover all edge cases, you'll want to implement both.
Fortunately Branch can handle all of that complexity behind the scenes so you don't have to worry about it! As mentioned in the answer above, the guide here will get you up and running with exactly the implementation you described!
I found a usable link here . It gives step by step details about deep linking using Branch.io

programmatically open an app in iOS

I thought this was not possible but I have seen some apps do that: For example, if I receive a notification from Candy Crush in FB, it opens the Candy Crush Game. If I open a map in safari, I can open directly in Google Maps app. I think I have seen it in native apps, but I may be wrong.
So my question is whether this is possible. I have two apps, and I want the user to open the one inside of the other. So for instance, the one app has a button called "Open brother app"
and when I click it, it should open the Other app, if it is installed.
Both apps have the same company identifier, like : com.mycompany.ios.projectname.
Thanks
It is possible for apps supporting their own custom url schemes.
For more info have a look here.

Link to App Store app developer page with iOS 6?

Is there a way, in iOS 6, to link from an app to a specific developer's page on the App Store app? By that I mean a list showing all the apps by the developer.
There are various ways to link to the store (I am using the Appmosys as the example here) that produce various results:
http://itunes.apple.com/us/artist/appmosys/id331687329 - The link copied from desktop iTunes, opens up the iTunes app on an iOS 6 device, with the developer's page. If you tap on one of their apps, it goes to that app on the App Store app.
http://itunes.com/apps/appmosys - Opens the iTunes app (via Safari) but presents this error message: "Cannot connect to iTunes store".
itms://itunes.com/apps/appmosys - Goes straight to the iTunes app, but same error as above.
itms-apps://itunes.com/apps/appmosys - Opens the App Store app, but also presents the same error (screenshot here: https://dl.dropbox.com/u/6920023/iphone-screenshot.PNG ).
Is there actually a way to do this in iOS 6?
Bonus points if you can answer the question and know if the link you provide also works with the affiliate program, http://www.apple.com/itunes/affiliates/. I've already looked at the Link Maker on this page, http://www.apple.com/itunes/link/, but can only produce the standard iTunes link.
Part B / even more bonus points
You can link straight to the Reviews tab in the App Store app for an app, but can you also now link straight to the new Related tab?
i have a solution for iOS 5:
itms-apps://itunes.com/apps/appmosys/id331687329
and one for iOS 6:
itms-apps://itunes.apple.com/artist/appmosys/id331687329
if you use itms-apps:// URLs instead of http:// it will open the app store app on the device, which is less confusing to the user, then going through safari.
Unfortunately i didn't found any single URL that works on iOS 5 and iOS 6. So the Apple Q&A Documentation is not valid anymore for iOS 6 :-(
UPDATE: i just realized that my iOS 5 solution works also on iOS 6 on the iPad, but not on the iPhone with iOS 6. it's getting weirder and weirder....
UPDATE 2:
apple just annonced the appstore.com urls so now you can link to Electronic Arts Developer Page with http://appstore.com/ElectronicArts
i just tested it and it works for iPad from iOS 5.1 to 6.0 and iPhone from 4.3 to 6.0
so now the Apple Q&A Documentation is valid!
I have a universal app and I needed to open up my developer page, and display the correct apps depending whether the user is using an iPhone, iPod or iPad. The only way I could get this to work correctly was by using the iTunes link maker http://itunes.apple.com/linkmaker/ results but replaced https: with itms-apps:
The link like http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewArtist?id=426623392
will be work on any iOS devices and any browsers in Internet also.
The customer will be NOT confused because it is standard link of Apple and developers using it.
Change just your id. So, it will be http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewArtist?id=XXXXXXXX where XXXXXXXX is your developer id.
This link you can find also in iTunes App on your desktop by copy the link from button "More Apps by YYYYYYY" on page of any of yours App. There YYYYYYY is your developer name. Like on this page https://itunes.apple.com/be/app/visual-html-editor-eye-lite/id472624198?mt=8
If you prefer to have a CUSTOMIZED "MORE APPS BY US" page inside your app (not exit to AppStore or Safari), then have a look at what I created here (there is downloadable working project):
http://xcodenoobies.blogspot.com/2014/06/how-to-create-dynamic-more-apps-page.html
The beauty of this is the data is retrieved from iTunes AppStore everytime you open the page in your app, and that you can customize it however you like.
Cheers.
http://itunes.apple.com/artist/id331687329.
I get to this link by using iTunes on Mac. Search for the company name, click on any app that is made by the company, look for "More iPhone Apps by XXXXX", click on it, then you'll see all apps by this company, right click on the company name and copy link, and you'll get this link. This link will work with iOS 6.
I have no problems mit links created with http://itunes.apple.com/linkmaker/
It generates only https links.

Resources