I just created a short dynamic link for this url https://m.example.com/invitation?gameid=1234&referrer=555
.
It is working fine, but when i click the shortlink
in browser it is directing to my page but it is showing all the sensitive information
like gameId
and referrer
in browser address bar. I don't want to show that.
Is there any way to show short link even when i click the shortlink in browser also or anyway to hide the sensitive information.
Firebase Dynamic Links do not provide mechanism to hide link data from person who have access to the link. In addition to exposing the link content in browser address bar (as you already found out), any person can get link details by going to link debug page https://firebase.google.com/docs/dynamic-links/debug . Append ?d=1
or &d=1
to the link to get here.
If you need to hide information, you can consider encrypting the information, like https://m.example.com/invitation?encrypted_data=<base64 data here>
Another option is to store data in database and having only data identifier in your link, like https://m.example.com/invitation?data_id=<identifier>
If you think your use case is important or widely used, feel free to open Firebase support ticket. We always open to feature requests and suggestions how to improve our product.
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