As of August 25th 2025, Firebase Dynamic Links have been deprecated (see announcement).
This small repo contains a simple mechanism that redirects to the correct store (or preferably directly to an application) based on the user's browser's User-Agent header.
In case that fails in some fashion, each link is animated in after a two second delay, giving users the manual options to navigate to the one applicable to them.
View it in action over at https://hrafnthor.github.io/dynamic-link-replacement/