I have taken all the necessary steps to utilize a universal link. I created an AASA file, verified it using aasa-validator, and configured it in XCODE as required.
Now, I am facing the challenge of setting up a hyperlink on my webpage that can redirect users to the app. Unfortunately, I am unsure of how this process works and how to implement it.
I need to establish a URL that will seamlessly transition users from the web to the app when a specific button is clicked.
What type of URL should I be integrating? I have experimented with a few URLs like the ones below:
$('#myButton').on('click', ()=>{ location.href = "https://example.com/somepage"})
and
$('#myButton').on('click', ()=>{ location.href = "https://example.com/apple-app-site-association" })
As expected, these attempts only resulted in either navigating to a page or downloading the AASA file.
Due to my limited understanding of this mechanism, I have tried various methods but to no avail. Any guidance on this matter would be highly appreciated.