Universal Links

RSS for tag

Allow your users to intelligently follow links to content in your app or to your website using universal links.

Posts under Universal Links tag

95 Posts
Sort by:

Post

Replies

Boosts

Views

Activity

Unable to test universal links on device/simulator iOS16/17 Xcode 15
Hi! I've been hitting a wall trying to test universal links on the iOS Simulator and/or a real device. I'm using expo EAS dev builds. I'm fairly confident the AASA file config and hosting is done correctly. I have tried both the ?mode=developer and standard. Unfortunately, I can't seem to get past the following error picked up from swcd process in the console app: Error getting enterprise-managed associated domains data. If this device is not enterprise-managed, this is normal: Error Domain=SWCErrorDomain Code=1701 "Failed to get associated domain data from ManagedConfiguration framework." UserInfo={NSDebugDescription=Failed to get associated domain data from ManagedConfiguration framework., Line=298, Function=-[SWCEnterpriseContext(CPMCInterop) _loadEnterpriseData]} This is the same on both the simulator and a device - built using the appropriate EAS build config and Xcode 15. This is on an iOS17 iPhone 15 Simulator, and iOS16 iPhone 11 device with developer mode 'On' in settings (even though swcd logs say otherwise for some reason- Developer mode enabled: No) Am I missing a setting on the simulator/device or something else? I did see mentions of an Associated Domains Developer setting, but I'm unable to find this on the device/simulator iOS16/17. Would appreciate any help on this!
1
2
1.4k
Oct ’23
Universal Links to multiple apps (iOS 15)
Hi! We have two apps, both use the Universal Links mechanism, apps should be opened when user read NFC tag. The tag content is a URL link to our domain. After updating to iOS 15, users faced the problem that they constantly see the application selection dialog when reading the nfc tag. How to fix it? Previously, the selection dialog was displayed once and the value was stored. Our aasa file on domain: { "applinks": { "apps": [], "details": [ { "appIDs": ["*.*.app1"], "paths": ["*"] }, { "appIDs": ["*.*.app2"], "paths": ["*"] } ] }, "appclips": { "apps": [ "*.*.app2.Clip" ] } }
1
0
1k
Oct ’23
Universal Link from HTML/JS
We have been testing universal links and detected the following: Assuming there is an HTML with embedded JS that redirects to the universal link. **Direct redirection --> WORKS OK ** window.location.href = "https://my-universal-link?data=abc"; Redirection with timeOut or Interval --> NOT WORKING (go to default WEB) setTimeout(function () { window.location.href = "https://my-universal-link?data=abc"; }, 2000); setInterval(function () { window.location.href = "https://my-universal-link?data=abc"; }, 2000);
3
0
1k
Sep ’23
Url-scheme is not working
Hi everyone! Tried to find out the solution by myself, but I failed =) Problem: I have one app on both iPhones, but the url_scheme works differently on them. 1 phone: Click at web link to the app – opens app 2 phone: click at web link to the app – opens web version. Tried to find info in logs, but didn't find answers there. Associations works correctly, cause on other phones everything works fine. Can you please help me to find out the reason? Maybe some info about what I need to search in logs or maybe you've faced the same problem.
1
0
920
Sep ’23
Open link to safari
I'm building a project in react with typescript that involves reading a QR code, what happens to iPhone users is that the QR code is read from the iPhone's code reader and the link opens in a web preview of the reader application of codes, this link opens a page with two buttons where the user will choose whether to open the next link in which browser, for example, firstly when he chose to open with safari I would leave the link like this: https://mysite.ao/home/23883298393232/ueuweyuwe7 The problem is that this way the link also opens in the web-preview, I want it so that when I choose to open with safari this link opens specifically in safari I tried to do it this way: `function openToSafari() { window.open('safari://mysite.ao/home/23883298393232/ueuweyuwe7', '_blank'); }` The problem is that when you do this the following message appears: "Safari cannot open the page because the address is not valid" But if the user chooses to open with other browsers, the link opens very well, but if they choose Safari it does not open and gives this message. Could anyone give an explanation of how I could overcome this? Thank you very much in advance! To open with Chrome, I'm doing it this way and it works very well: function openToChrome() { window.location.href = googlechrome://mysite.ao/home/23883298393232/ueuweyuwe7 } I want it so that when I choose to open with safari this link opens specifically in safari The problem is that when you do this the following message appears: "Safari cannot open the page because the address is not valid"
0
0
353
Sep ’23
Universal Link only redirecting to the App under specific circumstances
The Problem: I am building an app that uses PayPal for payments, and I set up universal links so that the user gets redirected into the app after the user has confirmed the payment at PayPal's site. Universal links are working in general. But here is what I have discovered: The following scenario works: The app opens the nextActionUrl from PayPal using SFSafariViewController. User has to log in and presses the login button. User presses the confirmation button on the PayPal site. PayPal redirects to the return_url that was provided when creating the payment intent. The browser closes, and the user gets redirected into the app. Now when the user has just recently logged into PayPal then PayPal does not show the login page, instead the user has to only press one button. This scenario fails: The app opens the nextActionUrl from PayPal using SFSafariViewController. User does not have to log in and presses the confirmation button on PayPal site. PayPal redirects to the return_url that was provided when creating the payment intent. The browser opens the website behind the universal link instead of redirecting to the app. This scenario also works: The app opens the nextActionUrl from PayPal using SFSafariViewController. User does not have to log in, but actively logs out. User has to log in and presses the login button. User presses the confirmation button on the PayPal site. PayPal redirects to the return_url that was provided when creating the payment intent. The browser closes, and the user gets redirected into the app. This happens consistently and reproducible. Some additional details: I am developing the App using Flutter I set up the Runner.entitlements as follows: ... <key>com.apple.developer.associated-domains</key> <array> <string>applinks:sub.example.com</string> </array> ... I set up the Info.plist as follows for deep links with different schema: ... <key>CFBundleURLTypes</key> <array> <dict> <key>CFBundleTypeRole</key> <string>Editor</string> <key>CFBundleURLName</key> <string>sub.example.com</string> <key>CFBundleURLSchemes</key> <array> <string>web+example</string> </array> </dict> </array> ... I set up the apple-app-site-association file on the website at https://sub.example.com/.well-known/apple-app-site-association as follows: { "activitycontinuation": {}, "webcredentials": {}, "applinks": { "apps": [], "details": [ { "appID": "XXXXXXXXXX.com.example.example", "paths": [ "/*" ] } ] } } To open the urls from Flutter I am using the package url_launcher and simply call await launchUrl(nextActionUrl) What I've tried and what I've learned: I tried many things, before I discovered this consistent behavior. For example: I connected my device to the mac and opened the console for it in xcode to see how the logs look like when it works and how it looks like when it does not work. I found out that when it works there is a log entry that requests the switch to my App from the SpringBoard-process: [Received trusted open application request for <applicationId> from <FBProcess: ...], but in the cases where it does not work there isn't a rejected request or anything. The SafariViewController does not even seem to try to go the universal link route and instead opens the link as a website directly. For even more logs, I pressed and hold the volume buttons and clicked the lock screen button until a haptic feedback occurred. After that, I extracted the syslogs that were generated from the settings/privacy section via AirDrop on to the mac. I took a look at the swcutil_show.txt file and the universal link is definitely set up correctly there. I also skimmed around in the other logs, but I couldn't find anything helpful. I have inspected the url_launcher package to see how it works for iOS and if there may be something wrong, but I didn't really find a problem. I only discovered that the package is using the SFSafariViewController and after some googling I've read the WKWebView would be more suitable, but it didn't seem to be the problem. I googled a lot and found many problems related with setting up universal links correctly, but no topics about universal links sometimes working and sometimes not. The only thing close I found was that a universal link won't redirect you to your app if you type it into safari directly but if you click it for example from an email. The work-a-round that works... After I confirmed that it consistently works after logging in first, my theory was that it needs at least one navigation between opening the PayPal site in the browser and PayPal redirecting to the universal link. To confirm my theory, I created an intermediate page that redirects the user immediately after the load event to the PayPal site, and I was disappointed. It didn't change anything. Then I thought: Maybe it's the User-Interaction that is needed, and I change the intermediate page to only redirect if the user presses a button. And from there on, redirecting to the App using a universal link always worked. But this isn't a nice solution - at max, this is an ugly work-a-round that may help someone. My question(s) Now I am not sure if this is a bug on Apple's side since I didn't find anything on the web or maybe even something strange on PayPal's side? Am I doing something wrong? Did someone experience the same thing and has a solution? Thank you for your time and hopefully for your input on this!
2
1
2.6k
Sep ’23
Apple Universal Link Configuration File CDN download failed, causing the app to fail
Recently, it has been discovered many times that after newly installing the mobile cloud disk APP on the IOS system, the universal link c.139.com (for example: https://c.139.com/m/a/s/?p=L1t4) cannot be used. Pull up directly. After our internal monitoring and analysis, the situation is as follows: Monitoring data shows that recent visits to Apple’s CDN configuration files (https://app-site-association.cdn-apple.com/a/v1/c.139.com, https://app-site-association.cdn -apple.com/a/v1/yun.139.com), a 404 error is often reported, that is, obtaining the configuration file from Apple CDN back to the source c.139.com and yun.139.com fails. The number of alarms is 2-3 times a day, and each time lasts for 1-2 hours. As a result, newly installed or upgraded IOS mobile cloud disk clients during the corresponding period cannot pass c.139.com and yun.139.com. The domain name directly launches the APP. After our operation and maintenance inspection, there are no abnormalities in the c.139.com server file configuration and network, and the universal link of the client's project configuration is also correct. We need Apple's help to check whether there are any abnormalities in the routing of Apple's CDN nodes to 117.161.4.213, and to check whether there is instability in the CDN nodes. Thank you so much.
0
0
525
Sep ’23
App Clip iMessage Sharing Not Working
We have been having problems with our app clip not working when sharing through iMessage. The app and app clip are published and work correctly when scanning a QR code that points to the URL: https://www.coderus.com/locations?loc=1 however if this same URL is shared through the iMessage app, a link to the website displays and not the app clip card. We have confirmed that: AASA file is available and has the type application/json Both devices are above iOS 14 Both devices are in each other's contacts The website has the meta tag for the smart app clip banner The website has a meta tag for the og:image Launch experiences have been configured on AppStoreConnect - as said before, the QR codes work correctly The link leads to a 404 page, I wasn't sure if there needs to be an actual page that the link points to as app clips seem to work fine without when scanning the QR code through the camera app.
1
1
850
Sep ’23
iOS Universal Links with Wildcards not working
https://developer.apple.com/library/content/documentation/General/Conceptual/AppSearch/UniversalLinks.html as per this link Universal links with wildcards working fine, followed steps in this link to apply deep linking to my application but it doesn't work. When clicking on a link in received email, it should navigate to my application but it is opening in safari browser. I have mentioned "*.test.com" as applinks in Associated domains under Capabilities in Xcode and in our web side we have deployed "apple-app-site-association" file in root folder. My server host name like "abc.test.com" and I have mentioned applinks like "*.test.com" this universal links with wildcard feature is not working.I have Enabled ‘Associated Domains’ in my app identifier on developers.apple.com, If I have mentioned applinks like "abc.test.com" then it is working fine. My application Developement target is 9.3.
3
0
3.5k
Sep ’23
Universal Links Issues
Hello, I'm having a hard time with Universal Links and my app. This looks good: $ curl -I https://www.bolsinga.com/.well-known/apple-app-site-association HTTP/1.1 200 OK Date: Mon, 12 Jun 2023 22:10:57 GMT Server: Apache/2.4.29 (Ubuntu) Last-Modified: Mon, 12 Jun 2023 20:53:38 GMT ETag: "1eb-5fdf4e9bcb926" Accept-Ranges: bytes Content-Length: 491 Content-Type: application/json This looks good in my entitlements: <key>com.apple.developer.associated-domains</key> <array> <string>applinks:www.bolsinga.com</string> </array> The screenshot below good too (from Settings -> Developer -> Universal Links -> Diagnostics). If I have a link like https://www.bolsinga.com/dates/sh624.html in Notes.app, and I tap on the link it will open in Safari. If I tap and hold, it will not suggest my application. It seems like my universal links should work. Am I doing it wrong? I thought it meant if I opened the URL in these ways it would open in my app. Thanks for your help!
6
0
1.9k
Sep ’23
Universal Links Stops Working Randomly
Universal links stops working randomly, When i tried this curl API test i found strange result Case 1: When the curl test return association JSON response it works fine Case 2: Sometimes the curl test fails and association JSON response is not returned for the same log is below: (Actual domain is replaced by mydomain.com) Https enabled No redirections Association added in .well-known folder Works randomly without any change in sever IP added as exception in blacklist Applebot added as: User-agent: Applebot Allow: /.well-known/ Curl API Test Response: Using Terminal: curl -v https://app-site-association.cdn-apple.com/a/v1/mydomain.com *  Trying 8.241.155.124:443... * Connected to app-site-association.cdn-apple.com (8.241.155.124) port 443 (#0) * ALPN, offering h2 * ALPN, offering http/1.1 * successfully set certificate verify locations: * CAfile: /etc/ssl/cert.pem * CApath: none * (304) (OUT), TLS handshake, Client hello (1): * (304) (IN), TLS handshake, Server hello (2): * (304) (IN), TLS handshake, Unknown (8): * (304) (IN), TLS handshake, Certificate (11): * (304) (IN), TLS handshake, CERT verify (15): * (304) (IN), TLS handshake, Finished (20): * (304) (OUT), TLS handshake, Finished (20): * SSL connection using TLSv1.3 / AEAD-AES256-GCM-SHA384 * ALPN, server accepted to use http/1.1 * Server certificate: * subject: CN=app-site-association.cdn-apple.com; OU=management:idms.group.5707244; O=Apple Inc.; ST=California; C=US * start date: Sep 1 20:44:29 2021 GMT * expire date: Oct 1 20:44:28 2022 GMT * subjectAltName: host "app-site-association.cdn-apple.com" matched cert's "app-site-association.cdn-apple.com" * issuer: CN=Apple Public Server RSA CA 12 - G1; O=Apple Inc.; ST=California; C=US * SSL certificate verify ok. > GET /a/v1/mydomain.com HTTP/1.1 > Host: app-site-association.cdn-apple.com > User-Agent: curl/7.79.1 > Accept: */* >  * Mark bundle as not supporting multiuse < HTTP/1.1 404 Not Found < Date: Tue, 28 Jun 2022 06:51:03 GMT < Content-Type: text/plain; charset=utf-8 < Content-Length: 10 < Connection: keep-alive < Apple-Failure-Details: {"cause":"context deadline exceeded (Client.Timeout exceeded while awaiting headers)"} < Apple-Failure-Reason: SWCERR00301 Timeout < Apple-From: https://mydomain.com/.well-known/apple-app-site-association < Apple-Try-Direct: true < Cache-Control: public, max-age=1800 < Expires: Tue, 28 Jun 2022 06:51:23 GMT < X-Cache: MISS < CDNUUID: 2478cf3a-1d35-4870-ae61-0ad342ef8adf-1481196180 < CDN-Server: lumn < Age: 1238 <  Not Found * Connection #0 to host app-site-association.cdn-apple.com left intact Please support, Urgent Help Required.
10
1
1.5k
Sep ’23
Universal link contains fragment
Hi, I'm having a problem about defining universal link. I have a link like: host/en/booking/#serviceApp/resetPassword. I added in AASA file bellow: "applinks": { "apps": [], "details": [ { "appID": "myAppId", "components": [ { "/": "/*/booking/*/resetPassword", "#": "serviceApp" } ] }, ] } } Is it correct? Because I tried to test but it did not work Thanks!
1
1
605
Sep ’23
Unable to associate domain in non developer mode
Hi, I have a problem with associated domains developing Passkeys app. Adding alternate mode(developer mode) to Associated Domains Entitlement, it works fine. But in non developer mode, CDN doesn't seem to read the AASA file. AASA file's path is: https://(host).(rootdomain)/.well-known/apple-app-site-associtation I checked the TLS certificate conditions and all conditions are met. https://support.apple.com/en-us/HT213464 https://support.apple.com/en-us/HT210176 https://support.apple.com/en-us/102028 Is there another reason why it only works in developer mode? Thanks for your reply.
2
0
599
Aug ’23
Universal links are not working after adding Smart app banner meta tag
Universal linking feature stooped working after adding smart app banner. Also, universal linking started working after removing Smart app banner meta tag from the website. To test smart app banner on staging env, we used appStoreId of our prod app that is on appstore because we don't have a stage app on app store. Both universal links and Smart app banner are working fine on staging env but the same flow is not working on prod env. Any help would be appreciated
0
0
261
Aug ’23
Please help.I have a problem.but i cannot findout it.i use NGNIX server and using Azure application gateway.In appgateway i have a SSL and redirect http to https.but why Apple CDN say insecure.please help.
CDN Cache URL: https://app-site-association.cdn-apple.com/a/v1/dev.alignwell.com Apple CDN Cache Checks: Fail CDN Cache Query Success: Fail Status Code not 200-299: 404 No Apple Failure Message: Fail Apple has provided a failure reason: SWCERR00201 Insecure (non-https) redirects forbidden Apple CDN Cache Up to Date: Fail File cached by Apple CDN does not match direct file CDN Cached Contents: Not Found Apple CDN Debug Headers: Apple-Failure-Details: {"location":"http://dev.alignwell.com/.well-known/apple-app-site-association/"} Apple-Failure-Reason: SWCERR00201 Insecure (non-https) redirects forbidden Apple-From: https://dev.alignwell.com/.well-known/apple-app-site-association Apple-Try-Direct: false Cache-Control: max-age=3600,public Age: 3561 Content-Length: 10
0
0
350
Aug ’23