Firebase Dynamic Links¶
Documentation
Dynamic Links Deprecation FAQ
🌍 Web¶
Create the link from the Firebase console.
🤖 Android¶
Same requirements as App Links.
And add the Firebase Dynamic Links dependency in the app-level Gradle build file:
app/build.gradle.kts
implementation platform('com.google.firebase:firebase-bom:<version>')
implementation("com.google.firebase:firebase-dynamic-links-ktx")
Then in your Activity's onCreate method, use this code to get the link if the user came from a Firebase Dynamic Link:
FirebaseDynamicLinks.getInstance()
.getDynamicLink(intent)
.addOnSuccessListener(this) {
val uri: Uri? = it.link
}
📦 Data¶
| Uri | Value |
|---|---|
| scheme | https |
| host | smarquis.fr |
| path | /action |
| query | ?key=value |
| fragment | data |
⚙️ Features¶
| Feature | ✔️/❌ |
|---|---|
| App not installed | ✔️ |
| Offline | ❌ |
| Referrer | ❌ |
| Deeplink | ✔️ |
| Deferred deeplink | ✔️ |
📈 Pros and Cons¶
➕ Shorten urls https://mr7f2.app.goo.gl/Tbeh?d=1
➖ Ugly progress dialog when fetching link data
