cordova-plugin-firebase-dynamiclinks-ka

1.0.2 • Public • Published

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 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
});

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i cordova-plugin-firebase-dynamiclinks-ka

      Weekly Downloads

      1

      Version

      1.0.2

      License

      MIT

      Unpacked Size

      13.2 kB

      Total Files

      10

      Last publish

      Collaborators

      • kanodeveloper