Open the app from an external link with universalLink or deeplink - swift

I want to open app from an external link, for example a link that I get in iMessage, the question is, I should use deepLink or universalLink, I want to open the app when I tap on the link, then having ability to read the url in the app is enough for me.
And for this matter, I should set a Json file in the website as well? something like this:
https://developer.apple.com/documentation/xcode/supporting-universal-links-in-your-app
It's a bit confusing for me, could anyone gives me a real example and steps?
Thank you

Yes, basically both the app itself and the website need to be aware that you are going to be using Universal Links. There are a few steps to do this:
First you need to include the website as an Associated Domain inside of your Xcode project.
Then for the website you do have to create what is known as the apple-app-site-association file. This lets the the website know which apps are associated with the website.
This tutorial has a step by step on How to setup your website to work Universal Links.
Lastly you will have to have to update your AppDelegate file to handle when a Universal link opens the application.
More info can be found in the official Apple Documentation on Creating Universal Links.

Related

How to override the mac app right-click options?

I'm working on a mac app that is based on links like bitly.
Users can create short link mapping using the app.
I'm looking to provide an option that whenever the user right-clicks on links no matter what app users have been using I'm just looking to append my app's action Create short link along with.
Let's say a user right-clicks a link on slack, slack usually provides two options 1. Copy Link 2. Open Link I want to provide Create short link option along with that. Is that technically possible in the mac app?

How to link to page inside a flutter app?

When I click on the link I created on the website; If the application is installed, I want it to open and go to the page I want in the application, if the application is not installed, I want it to go to the app store or play store. I searched a lot but couldn't find it. Can you help me.
enter image description here
The solution for you would be deep linking or custom scheme. Them are practically, the same thing. Here you can find a link how to use them:
https://medium.com/flutter-community/deep-links-and-flutter-applications-how-to-handle-them-properly-8c9865af9283
This is exactly what Firebase Dynamic links was created for.
You can configure urls to redirect based on whether the user has the app installed or not.
https://firebase.google.com/docs/dynamic-links

Is there any alternative to Universal-linking in SWIFT?

Okay I have been trying day long to figure deep linking and universal linking.
I am trying to design an app which has a deep link as "bunty" .
So I have a web link as http://www.bunty.org & if I click on this URL in my iphone it would result in opening myapp. And if not it would open the url in Safari or any other browser.
Till now my search results direct me towards Universal Linking . So is there any other way to achieve what I am trying to do like going via deep linking only?
I think what you're saying is that you want to deeplink into your app with the base URL. Unfortunately for universal links on iOS, this behavior is expected - Universal links only work from a different domain. So, you won't be able to open your app through the root domain.
You can use universal links through a non-root domain. One way to make this easier is to use branch to make deep linking easier - it's totally free and you can make custom redirects for individual links and platforms, and pass data through install.
As of iOS9.2, URI schemes are deprecated, so going with Universal links is probably your best option. If you use Branch, you can also set up a custom domain (not the same as your root domain) with Cloudflare to use for your Universal links.

Sharing app-specific files and data between ios users

I am writing an app that allows users to create and save (locally) various visual models. A new requirement has come up to allow users to share their models.
Has anyone had an experience doing this and what is the best way of implementing this? Ideally I would like to be able to attach a file or a link to an email/tweet and then send it off and then it opens the file in the app or if you don't have the app installed it send you to the app in the app store?
Update: The MindJet iPad app does exactly what I need
i think you should make your own api on a http server so you can handle the data the users send. and when some one install your application you can check by making a function execute once the app launched if this user "also i suppose here that you have implement a registration module" have any shared data so you can download it ...
The example app you name (mindjet) seems to be using dropbox for its file service.
http://www.dropbox.com/
This article explains this in great detail:
http://www.raywenderlich.com/1980/how-to-import-and-export-app-data-via-email-in-your-ios-app

how do you link directly to app store app update page?

I'm finishing up an iPhone app. I'm using an external server to inform users of when an update is available for my app and allowing them to click from within the app to go straight to the update on the app store. Problem is, I can't seem to figure out the link format to go directly to the update. I've found an old method of using viewsoftwareUpdate (mentioned in another post here) but it's all related to outdated phobos links and I can't seem to get it working for me. I'm currently using the simple format to link directly to the app: itms-apps://itunes.com/apps/"appname", and I assume there is a way to alter this format to get to the app update instead of the main app page?
This seems like a pretty basic functionality so I'm surprised I can't find anything on it.
Also, does anybody know how to link directly to the users own update tab in the app store? Not specific to one app, but the update tab that shows all the updates they have available for download.
Turns out the phobos links do still work and you can link directly to the update page using this URL format:
itms-apps://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftwareUpdate?id=[APPID]&mt=8
Of course replacing the [APPID] with your own app id, not including the brackets. This will link directly to the latest update for the app, instead of the main app page.
[Note: the solution was posted in with the question, I just moved it here --progrmr]
Just link to your app in the app store, that link will never change.
The page will show the updates right above the screenshots.
Your best bet is to strip the update information from your apps page using JSON, or some XML parser.
As for the list of all updates, again, Apple compares versions of the installed apps and lists them accordingly, stripping out only the update information.
The phobos link did not work for me so I used the following link and it works great:
itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftwareUpdate?id=[APPID]&mt=8