What I want to do
I have successfully set up deep linking for my app: When a link is opened, the user is asked to choose how to open it: Using my app or a browser.
I would like to use the new App Links feature, where the app is automatically opened if it's installed.
To do this, the documentation states that I should create this file on my server:
https://hostname/.well-known/assetlinks.json.
The problem
The problem is that intent-filter data section is defined like:
<data android:scheme="https"
android:host="myGithubUsername.github.io"
android:pathPattern="/appname/groups/.*/join"/>
because my site is hosted on Github Pages.
So this can't work, because the file must be in https://myGithubUsername.github.io, but my website actually is https://myGithubUsername.github.io/appname
The alternative way would be to set android:host="https://myGithubUsername.github.io/appname" - but it doesn't work. The link isn't opened by the app at all.
Is there a way to use Android App Links with Github Pages?
You can use Android Applink with Github Page. Just create a file named _config.yml in your root folder and the value inside is include: [".well-known"]. Here is the example
https://github.com/trungnn307/trungnn307.github.io/blob/master/_config.yml
Actually, It is achievable. Just create repository named ".well-known" and add assetlinks.json file to it via upload.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With