I'm trying too get a universal link working in the simulator so I can test it out. As this is a work project I don't have a compatible device I can use. Thus trying to make this work on a simulator.
I've done everything I can find on the web to try and make this work:
- Added the associated domains to the app and set the domain as
applinks:192.168.50.200?mode=developer
. I'm using the web server on my Synology NAS to test this out. - Added the
application(_:continue:restorationHandler:)
method to the app delegate, logged the incoming URL and returnedtrue
. - Created a
.well-known/apple-app-site-association
file in the NAS's web server. - Tried using
simctl
, iMessage and Safari to open a matching URL that should then open in the app.
But step 4 doesn't work. Instead the simulator just opens the URL as a web page.
I've installed proxyman and it shows the web page URL being sent to the server and the response coming back, but at no time is a request sent from the simulator for the apple-app-site-association
file. No matter how I try and invoke things.
A number of blogs I've read say that you should be able to test universal links in the simulator using a number of the techniques I've tried. But they don't work for me. I've tried this on an iOS 11.4 and a 13 simulator.
Any ideas? I'm fresh out.