Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Universal links not working in development

I am trying to create Universal links for my app. I am using the apple validation tool to test my server configuration (https://search.developer.apple.com/appsearch-validation-tool/) and everything looks fine.

enter image description here

So I run my app which has the:

- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void (^)(NSArray * _Nullable))restorationHandler

method implemented but my app never opens. I can only see Safari. Entitlements are also added to XCode. The funny thing is that on the smart app banner I never get the word open but I get the view button so that I can download it form the app store. Am I doing something wrong or must my app be uploaded to the appstore so that the links can be opened by it?

like image 811
alecnash Avatar asked Nov 19 '15 18:11

alecnash


People also ask

How do I enable universal links in iOS?

How do I set up Universal Links for my app? Log into your Apple developer account and go to the app's ID page. Enable the Associated Domains app service. Take note of your Prefix (bundle ID) and your ID (team ID) - you will need them later.

How do I test a universal link?

TEST THE UNIVERSAL LINKS Run the application on the simulator once to make sure the application is installed and running fine. 2. Keep the same simulator launched and running. Go to your simulator browser and open type the ngrok domain address i.e., https://1bd39880fbad.ngrok.io in my case.

Does Android support universal links?

Android App Links (sometimes referred to as Universal links) are HTTP URLs available on Android 6.0 and higher, that help in bringing your users directly to your Android app. It contains the autoVerify attribute that allows your app to designate itself as a given type of link.

How do universal links work?

The implementation of universal links is similar to a standard deep link. However, instead of defining a custom URL scheme, a universal link matches a set of web pages to locations in-app. This means that when a user opens a web page which is matched as described, iOS automatically redirects the user to the app.


1 Answers

For me the problem was that in the Appstore version I clicked once on the top right to get forwarded to the Safari page. This behaviour was saved even through uninstall and new installations of the app. In the dev version I never clicked on the top right corner and therefore universal linking worked all the time.

How to fix it: For example go to notes and create a link https://example.com/whatever now long press on this link and select Open in "<App Name>"

like image 105
hashier Avatar answered Oct 23 '22 03:10

hashier