-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android App Links broken #335
Comments
The docs suggest that App Links are still a thing: https://developer.android.com/training/app-links. The only API levels mentioned there is 23 (which is the minimum we support). But there is perhaps a new verification system: https://developer.android.com/training/app-links/verify-android-applinks. That suggest that we need to host e.g. "https://camcops.org/.well-known/assetlinks.json". The challenge for that might be the HTTPS and the redirection involved to camcops.readthedocs.io. We could shift to using the readthedocs domain, I suppose. |
It's possible also that we could use deep links instead where the scheme could be "camcops" instead of http. This is effectively what happens on iOS. The disadvantage of this is that email clients won't treat these as hyperlinks so they can't be followed. You can still copy and paste into a browser though. |
Actually this is next to useless because browsers won't recognise non-http schemes even with copy and paste. The only way I could get this to work was using Experiments at https://github.com/martinburchell/qt-android-url-handler I think the only way forward would be use the HTTP scheme and host the necessary files at camcops.org. The advantage of this is that we should be able to direct users to the app store if the app isn't already installed. Alternatively seek another way to make registration easier such as scanning a QR code. |
OK. The slight concern I have about camcops.org is its nature as a redirection site. Currently, http://camcops.org/ redirects to http://camcops.readthedocs.io (it's a Network Solutions redirection domain) but https://camcops.org/ doesn't work. In general, even if that did, there might be some risks associated with a redirection, i.e. not all software might accept it (and it requires the software to accept the redirection and then the certificate associated with the second site name). Is there an option to go direct to the ReadTheDocs or GitHub site? |
From https://developer.android.com/training/app-links/verify-android-applinks: Declare the association between your website and your intent filters by hosting a Digital Asset Links JSON file at the following location:
We wouldn't be able to do that on GitHub or ReadTheDocs. It wouldn't have to be camcops.org but we'd need a domain plus some hosting space and all of the costs that entails (or access to someone else's). |
Yes, fiddly. Currently the routing DNS service is just one I pay for personally. Could we use GitHub Pages?
|
Ah, of course so it would be on a subdomain. I'll investigate. |
Up until now it has been possible to automatically launch CamCOPS with an "AppLink" starting with http://camcops.org/register. The fact that this was a broken link didn't matter; the app would treat the URL as special without it being passed to a browser.
Now it seems that Google have changed how App Links work and we are getting errors on the Play Store about broken links and unverified domains. I suspect that the App Links won't work at all now. This needs some investigation into how we are meant to do this now.
Workaround is for users to enter their registration details manually.
The text was updated successfully, but these errors were encountered: