cordova-plugin-firebase-dynamiclinks-ka
v1.0.2
Published
Cordova plugin for Firebase Invites and Firebase Dynamic Links
Downloads
14
Maintainers
Readme
cordova-plugin-firebase-dynamiclinks
Cordova plugin for Firebase Invites and Firebase Dynamic Links
Installation
cordova plugin add cordova-plugin-firebase-dynamiclinks --save --variable APP_DOMAIN="example.com" --variable REVERSED_CLIENT_ID="123456789.com.example"
If you need to set a specific dependency version on Android then use variable FIREBASE_VERSION
.
Variables APP_DOMAIN
and APP_PATH
specify web URL where your app will start an activity to handle the link.
Variable REVERSED_CLIENT_ID
can be found in your GoogleService-Info.plist
under the same key name.
Variable PHOTO_LIBRARY_USAGE_DESCRIPTION
specifies required value for NSPhotoLibraryUsageDescription
on iOS.
Supported Platforms
- iOS
- Android
Methods
onDynamicLink(callback)
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);
});
sendInvitation(config)
Display invitation dialog.
window.cordova.plugins.firebase.dynamiclinks.sendInvitation({
deepLink: deepLink,
title: dialogTitle,
message: dialogMessage,
callToActionText: actionButtonText
});