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

100 Posts
Sort by:

Post

Replies

Boosts

Views

Activity

Sending universal links through email with Brevo (sendinBlue) leaves a 404 page behind in safari
I have set up universal links which work - after clicking on link I see my website for like a second and then im being redirected to my app. When I open safari afterwards, I should see my website, but I see a 404 page/im sending the link via email using 'sendinBlue' and the 404 page shows a sendinblue email error. error shown: build-verify URL: build UrlParms: build-verify URL: cleanURL: invalid URL: host missing Does anyone use brevo as well and could tell em why this is happening? Thanks!!!
0
0
316
Jan ’24
Trouble deving universal links, only error is enterprise managed device
iOS 16.4 and 17.2.1 Hello, I've been developing the universal link for my mobile application and I can't actually get the app to open when the link is tapped. I went through some trial and error.. but here's my current status: testing my url in settings -> developer -> associated domains shows that my link should open an installed application sysdiagnose logs show that everything looks good there: Service: applinks App ID: 1234abcd.com.example Domain: example.com User Approval: unspecified Site/Fmwk Approval: approved Last Checked: 2023-08-24 10:09:00 +0000 Next Check: 2023-08-18 21:00:19 +0000 The only thing that indicates an error of some kind is the console logs during install.. when filtering on swcd it shows an error for Error getting enterprise-managed associated domains data. If this device is not enterprise-managed, this is normal: Error Domain=SWCErrorDomain Code=1701 UserInfo={Line=231, Function=<private>} I'm not sure if this is a managed device - my understanding is that managed devices allow enterprise businesses to operate the device remotely essentially (send files, run commands, etc). To my knowledge, this isn't enterprise managed device. It is listed in the devices page in my company's developer account, but we are a smaller shop, definitely not enterprise. I added the associated domain/app link via xcode, and it generated the entitlements file for me. <key>com.apple.developer.associated-domains.mdm-managed</key> <true/> switching that to false breaks the build: Provisioning profile "iOS Team Provisioning Profile: <mydomain>.<myapp>.dev" doesn't match the entitlements file's value for the com.apple.developer.associated-domains.mdm-managed entitlement. Profile qualification is using entitlement definitions that may be out of date. Connect to network to update. Removing it all together builds fine but doesn't allow me to open the app with a link. The other thing that looks off is an output in the logs filtered on swcd for Developer mode enabled: No but clearly I've enabled developer mode on the phone. I've pasted my link into my notes app and am attempting to open it from there If anyone can help me figure out what the disconnect is here, it would be greatly appreciated!
0
0
436
Jan ’24
Universal links issue in case of automatic redirection
Team, we have recently enabled universal links for our app. And our customers started facing one issue during the login flow. For login we generally open a web view inside the app with /login url Our login process can be configured with different IDPs, which takes care of authentication and once the authentication is done, IDP gives a callback to our server /callback. Once the callback succeeds, web view closes and we receive a token using deeplink of our app. (app://code) But for some IDPs the callback made to our domain /callback is received by the app and the login process stops in between. It doesn't happen for all the IDPs, so I am not sure what is going wrong. From what I know, in case of universal link redirection calls shouldn't open the app and should have been continued in browser then why we are receiving the automatic redirection calls to the app. Is there any response header in the redirection call that decides whether to open the url in web or app?
0
0
336
Jan ’24
Universal link redirection not working.
Implemented deep linking using Universal link by hosting a AASA file in the .well-known/ folder and at first it was working as expected. But later the content type of the file unexpectedly changed to binary/octet-stream and then it stopped working. So the content-type of the file is changed back to application/json. Still it is not working when the link is clicked it is opening the different browser options instead of redirecting to the app. Check with the curl -v link url, 200 ok response, content-type : application/json. Click on hitting the link in browser is downloading the JSON file without any redirection. Please help me.
0
0
324
Jan ’24
Unable to create 'Shared Web Credentials' on fresh TestFlight Install
Hey Apple team (and eskimo 🙏), Our FinTech app uses iCloud Keychain shared web credentials to store a secure encryption password in iCloud Keychain. Some of our new users seem to run into an issue where the app fails to successfully create a shared web credential. All users are required to have the following two settings enabled: Settings --&gt; Passwords --&gt; Password Options --&gt; Autofill from iCloud Passwords &amp; Keychain Settings --&gt; Apple D - -&gt; iCloud - -&gt; Passwords and Keychain --&gt; 'Sync this iPhone' The issue appears to resolve itself when the user restarts their iPhone. We've had this bug 3 times now and would like to understand the root cause. We have a couple hypotheses: iOS is failing to verify that the domain for the shared web credential is valid via &lt;domain&gt;/.well-known/apple-app-site-association (and then restarting triggers reverification) Users were on a version of iOS where it was bugged (and then restarting finally completed an update to a new version). We've verified that the bug happened on 17.0.2 with one user (until they updated and it fixed itself)
1
0
491
Jan ’24
Message Filtering Extention Not Working (Site/Fmwk Approval: denied)
Hi, there. I hope I can find a solution here. I'm making a sms filtering app which apple provides us in a template. And I'm going to use a the server for filtering. So, as mentioned in the link, https://developer.apple.com/documentation/sms_and_call_reporting/sms_and_mms_message_filtering/creating_a_message_filter_app_extension I did all those required, but as I tested the app I found that it was not working and found out that there wasn't any request from the app to the server. So I check the sysdiagnose - swutil_show.txt file, and this is what I got, Service: messagefilter App ID: App Version: 1.0 App PI: <LSPersistentIdentifier 0xd5681a0e0> { v = 0, t = 0x8, u = 0x840, db = 91BDA97A-5780-4A70-B971-BC7C7DAA63B8, {length = 8, bytes = 0x4008000000000000} } Domain: User Approval: unspecified Site/Fmwk Approval: denied Flags: developer Last Checked: 2024-01-06 08:06:47 +0000 Next Check: 2024-01-11 07:41:14 +0000 As you can see, I got denied in Site/Fmwk Approval. I think that means, they got the aasa file right, but the content was inappropriate. That's what I guess right now. This is my aasa file { "messagefilter": { "apps": ["(TEAMID).(APP BUNDLE ID)", "(TEAMID).(EXTENSION BUNDLE ID"] } } I think there is nothing wrong. I tried the search and use GPT but, there is no solution left so I posted here. I also tried "sudo swcutil verify" on terminal and the result was "pattern matched". If you have any tips or insights, please help this poor guy. Thanks.
0
0
414
Jan ’24
where is link received when application is launched using universal link
I have a mac application that is configured to have a universal link. Clicking the universal link launches my application. The documentation says that the link is received in the application(_:continue:restorationHandler:) delegate method which is invoked very late in the application lifecycle after applicationDidBecomeActive. I have the initialisation code of my app in applicationWillFinishLaunching method. Is there any way the Universal link can be received early, so that I can show the appropriate application window based on the universal link parameters? Is there any other delegate that receives the universal link?
0
0
353
Jan ’24
How to Integrate an External Marketplace Link into My iOS App?
Hi! I have an iOS app which I want to publish to the App Store. Within my app, users can scan physical item bar codes in grocery stores and earn points for their scans. They are then re-directed to a marketplace on the web, where they can spend these points on physical items (e.g. clothes). Does App Store block such external linking to marketplace? Thank you in advance!
0
0
413
Dec ’23
'LaunchIsDefaultLaunchKey' key in the Notification parameter in applicationDidFinishLaunching(_ notification: Notification)
The notification parameter in DidFinishLaunching contains a key LaunchIsDefaultLaunchKey which according to Apple documentation is: The value for this key is an NSNumber containing a Boolean value. The value is false if the app was launched to open or print a file, to perform a Service action, if the app had saved state that will be restored, or if the app launch was in some other sense not a default launch. Otherwise its value will be true. I m not able to understand the exact usecase for this parameter, like where can we make use of this parameter. Can I use this key to identify If my application was launched using a universal link?
0
0
393
Dec ’23
Universal Links was not working fine
Universal Links was not working fine on my phone.But I build and run on simulator is fine. I wrote Associated Domains Settings in Xcode applinks:example.com.tw?mode=developer applinks:example.com.tw the association file in the following URL https://example.com.tw/.well-known/apple-app-site-association { "applinks": { "apps": [], "details": [ { "appIDs": ["AAA.example"], "components": [{ "/": "/app/*" } ] } ] } } I used the simulator on Xcode to test the URL and successfully saw the text "Open in the "AAA" App". However, when I published the APP on Testflight and let the mobile phone download and test it, it was invalid. of. I tried using Settings > Developer > Universal Link Diagnosis > on my Iphone and entering [https://example.com.tw/app] and I will see "The URL is a Universal Link for the app" with identifier "BBB.example"" This TeamID setting is different from the file I put on the website. I have never wrote this TeamID setting. May I ask if I have made any wrong settings? Thank you, Jane
0
1
413
Dec ’23
Universal link not working for multiple apps
I have created a universal link which I m using for two different applications in macOS. Below is the apple-app-site-association file for the same: { "applinks":{ "apps":[], "details":[ { "appID":"E5R4JF6D5K.com.demo.App1", "paths":[ "/app1/*" ] }, { "appID":"E5R4JF6D5K.world.demo.App2", "paths":[ "/app2/*" ] } ] } } After creating this file in my server and providing the same Url in my associated domain capability for both my application, when I try to launch my applications using the link then only the first application is getting launched everytime. The second application is never launched. for Url with http://custom.com/app1/... it redirects to first app. for Url with http://custom.com/app2/... it redirects to browser. I tried uninstalling the first app, but then it always directs in browser. I tried a separate url for both apps, and it works fine. I m not able to figure out the problem. The apple documentation says that it is possible to have two application linked to a common domain. Any help?
2
0
747
Dec ’23
iOS App Clip Not Launching with Universal Link in SwiftUI
Description: I am developing an iOS App Clip using SwiftUI and am encountering an issue where the App Clip does not launch when clicking a Universal Link. Below are the key details of my setup and what I have tried: Main App Context: The main application is built with Flutter, but the App Clip is being developed natively in SwiftUI. Current Objective: I am aiming to demo the App Clip launch when a Universal Link is clicked. For now, it doesn't need to interact with the main app or process any parameters - the goal is simply to get it to launch. Development Environment: I am building the App Clip through Xcode and testing it by running the App Clip then clicking the link. Configuration: Associated domains have been added to both the App Clip target and the main "Runner" app target in Xcode, with updated provisioning profiles. The AASA file has passed validation using yURL’s Universal Links / AASA File Validator tool. AASA File Configuration: { "applinks": { "apps": [], "details": [ { "appID": "<TeamId>.<BundleId of main app>", "paths": ["/redeem"] } ] }, "appclips": { "apps": ["<TeamId>.<BundleId of app clip>"] } } Testing: Conducted on a real iOS device. Link Handling: The URL (https://vault-activation-beta.web.app/redeem) does not lead to a 404 error, and long-pressing the link in an SMS does not show any App Clip related options. Code Implementation: import SwiftUI import FirebaseCore import FirebaseAuth @main struct AppName_ClipApp: App { @UIApplicationDelegateAdaptor(AppDelegate.self) var delegate init() { FirebaseApp.configure() } var body: some Scene { WindowGroup { ContentView() .onOpenURL(perform: { url in print("Opened URL: \(url)") }) } } } class AppDelegate: NSObject, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool { print("Your code here") return true } func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool { if userActivity.activityType == NSUserActivityTypeBrowsingWeb, let url = userActivity.webpageURL { print("Opened URL from Universal Link: \(url)") // Handle the URL appropriately within your app } return true } } I am looking for guidance on whether there's something missing in my setup or if there are any issues with my implementation. Any suggestions or insights into why the App Clip is not launching with the Universal Link would be greatly appreciated.
1
0
612
Dec ’23
AASA File Issue..
AASA File was applied to apply UniversalLink to the App. I deleted AASA to remove UniversalLink while using it normally. However, even though I deleted the file, I'm still opening the app. I've tried reinstalling the app several times, and I've also disabled the server cache, but it's no use. What should I do? Anyone knows?
1
0
351
Dec ’23
Apple app site association CDN cache only working in Europe.
We have our apple-app-site-association file hosted on our website. It passes AASO verification, we can pull it successful as application/json via curl, and it also shows up as expected with a https://app-site-association.cdn-apple.com/a/v1/ourdomain.com link - however only in Europe. The apple CDN link works in: Czech, Finland, UK, and Spain, however it does not work in U.S., Phillipines, or Canada. In those cases, the CDN page shows "not found". It's quite strange that it only works in Europe. The file we are hosting doesn't have any IP restrictions that we are aware of, and we can access the file URL hosted on our website directly from the U.S. and Canada. So it seems that only Apple's CDN cache is failing to retrieve/store it for some reason, in certain locations. Has anyone seen something like this?
1
0
424
Dec ’23
What is the max limit of Universal Links registration
Problems I would like to know the max limit registrations of Universal Links. There is no information about the limit in the latest documents, how many links we can register. Background Now we consider introducing UniversalLinks to our application and one of the requirements is registering multiple domains. In the system's specifications, there is no upper limit. References Supporting associated domains https://developer.apple.com/documentation/xcode/supporting-associated-domains Associated Domains Entitlement https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_developer_associated-domains Support Universal Links(Documentation Archive) https://developer.apple.com/library/archive/documentation/General/Conceptual/AppSearch/UniversalLinks.html Archived documents say as follows but I don't know this is a reliable resource. In your com.apple.developer.associated-domains entitlement, include a list of the domains that your app wants to handle as universal links. To do this in Xcode, open the Associated Domains section in the Capabilities tab and add an entry for each domain that your app supports, prefixed with applinks:, such as applinks:hogehoge. Limit this list to no more than about 20 to 30 domains.
0
1
414
Nov ’23
Where is App Search Validation Tool
I am setting up universal links for my app. And running into some issues when setting it up for production. The following technical advisory recommends to use app search API validation tool. Technical Advisory: https://developer.apple.com/library/archive/qa/qa1916/_index.html#//apple_ref/doc/uid/DTS40017117 Tool Path: https://search.developer.apple.com/appsearch-validation-tool However clicking on the app search API validation tool leads to the generic search.developer.apple.com page. So where is the tool?
0
1
660
Nov ’23
Universal Link not opening iOS App
I own two domains, https://www.skejuul.me and staging.skejuul.me. I have deployed a iOS App on App Store.. For this app universal links are not opening the App. And instead universal link is taking user to browser. This is where we have hosted the AASA files for the servers: 1.https://www.skejuul.me/.well-known/apple-app-site-association 2.https://staging.skejuul.me/.well-known/apple-app-site-association Both files having same content: { "applinks": { "apps": [], "details": [ { "appID": "K57UGNG49B.com.shiftrock.mobile", "paths": ["*"] } ] } } Please note if we run our universal link for staging.skejuul.me it works i.e. it opens the app. But for https://www.skejuul.me domain it doesn't work. https://www.skejuul.me/forgotpassword (opens browser) https://staging.skejuul.me/forgotpassword (opens iOS App)
0
0
515
Nov ’23
Associated Domains stopped working after updating app Bundle ID
I updated the app bundle ID of my app in my associated domains file on my server which can be viewed using the Apple CDN at (https://app-site-association.cdn-apple.com/a/v1/myApp.app) and on my server at (https://myApp.app/.well-known/apple-app-site-association). All I did was update the app Bundle ID of my app in Xcode and likewise in the associated domains file, and now it is no longer working and I'm getting the error Application with identifier ABCDE12345.app.myApp.MyApp is not associated with domain myApp.app. This error is thrown when attempting to use the webcredentials portion of the associated domain file for logging in via Passkey. I've waited for 6 days to let the changes propagate through the CDN but the issue is persisting. Strangely enough, it has worked a few times since I changed it but almost always fails. This intermittent behavior leads me to believe it might be something up with the CDN? The only thing I changed about my appID was the domain, e.g. ABCDE12345.io.oldDomain.MyApp to ABCDE12345.app.myApp.MyApp. My file is structured as so: { "applinks": { "apps": [], "details": [ { "appID": "ABCDE12345.app.myApp.MyApp", "components": [ ... ] } ] }, "webcredentials": { "apps": [ "ABCDE12345.app.myApp.MyApp" ] } } Likewise I updated the entitlements in my app to webcredentials:myApp.app from webcredentials:oldDomain.io and similarly for the appLinks. I've tried deleting the app, restarting Xcode, clean builds, all that jazz to no avail. Any advice you have for remedying this would be greatly appreciated. This has brought my beta to a halt because no one can log in or sign up. Thank you.
1
0
1.3k
Nov ’23
Unity3D: Not getting Universal Link data in Application.absoluteURL and Application.deepLinkActivated
I'm having some issues regarding iOS Universal Links and Unity. I want to open my app and fetch the user id when user clicks on the deep link https://refer.mydomain.com/?userid=123456. I have uploaded the apple-app-site-association file to my domain's https://refer.mydomain.com/.well-known/ directory which contains the following data: { "applinks": { "apps": [], "details": [ { "appID": "ACBJSD1234.com.******.*****", "paths": ["*"] } ] } } I have also tried this syntax: { "applinks": { "details": [ { "appIDs": [ "ACBJSD1234.com.******.*****" ], "components": [ { "/": "*" } ] } ] } } I have validated both the data using https://branch.io/resources/aasa-validator/ and it shows as valid. I have also added the Associated Domain capability to the entitlement file with the domain: applinks:refer.mydomain.com. Now I have used the event listener provided by Unity to detect the deep link that is used to open the app. Now the thing is, my app is getting opened when I click on the link, but I'm not getting the deeplink data inside Unity. My doubt is that maybe my apple-app-site-association file is not properly set. Can anyone help?
0
0
546
Nov ’23
[iOS 16.4 & iOS 17.1.1] Deeplink does not redirect into app
Hi support team, We have implemented Deeplinks in our app before. But when I tap the universal link from a browser (in iOS 16.4 & iOS 17.1.1), it doesn't work, it directly opens the page on a browser. I tested it on iOS 16.2 & iOS 17.0, it is working fine, it was able to open the app. Do you have any idea why it is not working on iOS 16.4 & iOS 17.1.1 (latest OS) but it is working on other OS versions? Can you please guide me on how to fix this issue. Thanks.
10
0
3.1k
Nov ’23