anthropoy / cordova-plugin-firebase-dynamiclinks

:wave: Invite your contacts to install and use your app via Email or SMS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cordova-plugin-firebase-dynamiclinks
NPM version NPM downloads

Cordova plugin for Firebase Invites and Firebase Dynamic Links

Installation

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.

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,
    iosClientID: iosClientID,
    androidClientID: androidClientID
});

About

:wave: Invite your contacts to install and use your app via Email or SMS


Languages

Language:Objective-C 51.9%Language:Java 44.1%Language:JavaScript 4.0%