Cordova plugin for Firebase Invites and Firebase Dynamic Links
cordova plugin add cordova-plugin-firebase-dynamiclinks --save --variable APP_DOMAIN="example.com" --variable APP_PATH="/"
Variables APP_DOMAIN and APP_PATH specify web URL where your app will start an activity to handle the link. They also used to setup support for App Indexing.
Go to firebase console and export google-services.json and GoogleService-Info.plist. Put those files into the root of your cordova app folder.
- iOS
- Android
Registers callback that is triggered on each dynamic link click.
window.cordova.plugins.firebase.dynamiclinks.onDynamicLink(function(data) {
console.log("Dynamic link click with data: ", data);
});Display invitation dialog.
window.cordova.plugins.firebase.dynamiclinks.sendInvitation({
deepLink: deepLink,
title: dialogTitle,
message: dialogMessage,
callToActionText: actionButtonText,
iosClientID: iosClientID,
androidClientID: androidClientID
});