Skip to content

Commit

Permalink
document new method getDynamicLink
Browse files Browse the repository at this point in the history
  • Loading branch information
chemerisuk committed Oct 8, 2020
1 parent c2d5784 commit caddedc
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

[![NPM version][npm-version]][npm-url] [![NPM downloads][npm-downloads]][npm-url] [![PayPal donate](https://img.shields.io/badge/paypal-donate-ff69b4?logo=paypal)][donate-url] [![Twitter][twitter-follow]][twitter-url]

| [![Donate](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)][donate-url] | Your help is appreciated. Create a PR, submit a bug or just grab me :beer: |
|-|-|

## Index

<!-- MarkdownTOC levels="2" autolink="true" -->
Expand Down Expand Up @@ -40,6 +37,18 @@ To get callback for new app installs on iOS your dynamic link MUST have an [app

## Methods

### getDynamicLink
Determines if the app has a pending dynamic link and provide access to the dynamic link parameters.
```js
cordova.plugins.firebase.dynamiclinks.getDynamicLink().then(function(data) {
if (data) {
console.log("Read dynamic link data on app start:", data);
} else {
console.log("App wasn't started from a dynamic link");
}
});
```

### onDynamicLink(_callback_)
Registers callback that is triggered on each dynamic link click.
```js
Expand Down

0 comments on commit caddedc

Please sign in to comment.