Is there any alternative to Universal-linking in SWIFT? - 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.

Related

Open the app from an external link with universalLink or deeplink

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.

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

does the Facebook SDK (for iOS) break pre-existing deep links?

I have an iOS app that uses deep linking as part of an out-of-app authentication flow within a web view. Upon authentication, a redirect is made back to the app with the deep link prefix.
Ive installed the Facebook SDK because I wanted to track conversions, but after doing so, it seems to have disabled my deep linking functionality.
Is this expected, and if so, how do I get around it?
I figured out that the SDK will overwrite any of the URL types that you have specified in the project info. So you need to re-add your original deep link(s)

I want to convert my HTML site into iPhone or Droid compatible site. How can I do that?

My website is really very simple HTML based site. My site is located here: http://www.threesite.com
How can I convert this simple HTML site compatible with iPhone or Droid? Do I need to convert the same into PHP based site and then convert? Your help will be much appreciated.
5 Ways to Create or Convert into Mobile Phone Website.
The easiest way is to use Google's tool, because it converts your existing site automatically. I've tried it on your site and it looks nice.
If you want to tailor the site yourself, you have two options: Building an app or rewriting HTML. A site app makes your site highly customizable and professionally-looking, but it requires a lot of effort and separate development for each platform (iPhone, Android, Blackberry, Symbian, ...), and. it requires your users to specifically download your app.
If you choose to convert the existing HTML to a mobile-friendly site, it will be (mostly) cross-platform, and you can follow the guidelines here.
This is very interesting question especially these days when mobile visibility has never been more important.
For more complex website I would use some online mobile site converter service, such as duda mobile or bmobilized.
These services will give you just mobile - 'm' version of a website, but with long bad urls, and unless you pay for responsive package, the site won't work on tablets.
Maybe the best solution is to use joomla or word press and pick some responsive template and build the website from scratch. Building one responsive site is better solution than having multiple instances for each device...
examples:
a) duda service
If you wander what duda can do for you, just as an example, check this site crazyscarygames.com and check out his 'm' counterpart "m.crazyscarygames" for mobile devices. this is just an example.
b) script
If you would go for full responsive site, this is an example of purity III template on this website monkeygamesworld.com ... m.monkeygamesworld.com
And remember, always do all redirects from htaccess.
There's a google tool that you can use in the end to verify how your site works on android
google.com/webmasters/tools/mobile-friendly
just enter url and hit 'analyze'
also make sure that your robots.txt is setup well, in order to allow google bot do its scan properly throughout necessary directory structure in order to access all resources.
ok, hope that helps

Choosing what Iphone app must open one url schema

I'm able to open a url scheme with my apps. However i can have more that one app with the same
url scheme registered so i would like let user choose the default app for the scheme.
I need to use the same scheme for all my apps. Now by default iphone uses the last app installed that can open the schema.
Have you same idea to solve my problem?
Do you know if is possible inside an app choose itself as default to open a url scheme?
I can't find the possibility to do this in generale setting of Iphone.
Thanks you
It is not supported. Here is a note from Apple documentation.
If your URL type includes a scheme
that is identical to one defined by
Apple, the Apple-provided application
is launched instead of your
application. If multiple third-party
applications register to handle the
same URL scheme, it is undefined as to
which of the applications is picked to
handle URLs of that type.
Implementing Standard Application Behaviors
A possible solution would be to have your apps connect to the your server to get a list of your apps and their supported URL schemes. You can present that list to the user and the user can select the default app.