Skip to content

lp1bp/cordova-plugin-firebase-dynamiclinks

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 49.6%
  • Java 46.0%
  • JavaScript 4.4%