Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,17 @@ class CapacitorFirebaseDynamicLinks : Plugin() {
}
if (deepLink != null) {
val ret = JSObject()

val intentData: Uri? = intent.data
if (intentData != null) {
val code: String = intentData.getQueryParameter("oobCode").orEmpty()
val mode: String = intentData.getQueryParameter("mode").orEmpty()
val parameter: String = intentData.toString()
ret.put("code", code)
ret.put("mode", mode)
ret.put("parameter", parameter)
}

ret.put("url", deepLink.toString())
notifyListeners(EVENT_DEEP_LINK, ret, true)
}
Expand All @@ -204,4 +215,4 @@ class CapacitorFirebaseDynamicLinks : Plugin() {
companion object {
private const val EVENT_DEEP_LINK = "deepLinkOpen"
}
}
}