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.
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?
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.
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.
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.
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.
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>"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With