diff --git a/README.md b/README.md index 0d3e637..f1f178e 100644 --- a/README.md +++ b/README.md @@ -24,9 +24,13 @@ ## Installation - $ cordova plugin add cordova-plugin-firebase-dynamiclinks --variable PAGE_LINK_DOMAIN="mydomain.page.link" + $ cordova plugin add cordova-plugin-firebase-dynamiclinks --variable APP_DOMAIN_NAME="mydomain.page.link" -Use variable `PAGE_LINK_DOMAIN` specify your `*.page.link` domain. +Use variable `APP_DOMAIN_NAME` to specify your Google generated `*.page.link` domain or other custom domain. + + $ cordova plugin add cordova-plugin-firebase-dynamiclinks --variable APP_DOMAIN_NAME="mydomain.com" --variable APP_DOMAIN_PATH="/app1" + +Use variables `APP_DOMAIN_PATH` to speciy a specific domain path prefix when using a custom domain. This is useful if multiple apps share the same root level domain. If specified this path **must** begin with a `/`. Use variables `IOS_FIREBASE_DYNAMICLINKS_VERSION` and `ANDROID_FIREBASE_DYNAMICLINKS_VERSION` to override dependency versions for Firebase SDKs. diff --git a/plugin.xml b/plugin.xml index 11649b0..8b2e7dc 100644 --- a/plugin.xml +++ b/plugin.xml @@ -18,7 +18,8 @@ xmlns:android="http://schemas.android.com/apk/res/android" - + + @@ -26,7 +27,7 @@ xmlns:android="http://schemas.android.com/apk/res/android" - + @@ -37,8 +38,8 @@ xmlns:android="http://schemas.android.com/apk/res/android" - - + + @@ -54,7 +55,7 @@ xmlns:android="http://schemas.android.com/apk/res/android" - + @@ -75,15 +76,22 @@ xmlns:android="http://schemas.android.com/apk/res/android" + + + http://$APP_DOMAIN_NAME$APP_DOMAIN_PATH + https://$APP_DOMAIN_NAME$APP_DOMAIN_PATH + + + - applinks:$PAGE_LINK_DOMAIN + applinks:$APP_DOMAIN_NAME - applinks:$PAGE_LINK_DOMAIN + applinks:$APP_DOMAIN_NAME