I think I’ve done everything I need to do to set this up but I can’t seem to get it to work and not sure how to debug it. Here’s what I’ve done so far to try and set Universal Links up properly:
- Went to
developer.apple.com and enabled
Associated Domains for my app
app.entitlements['com.apple.developer.associated-domains'] = ['subdomain.domain.com'] to the
- Checked in the
Entitlements.plist file in the
build directory and confirmed the entitlement is there:
- Created an AASA (apple-app-site-association) file which is as follows:
"paths": [ "*" ]
- Uploaded the AASA to the server for
- Ensured it’s served over
https and it uses
application/json as the MIME type
- Added a method in
app_delegate.rb to handle the link being clicked and opening the app:
def application(application, continue:userActivity, restorationHandler:handler)
puts "I'm here"
Then to test if the setup is working:
- Deployed the app to a physical device using
- Opened the email app on the device and clicked on a link to
But the link always opens in Safari and the method in
app_delegate.rb never seems to get called.
Any advice on why this isn’t working? Or how to debug it?