mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-31 18:49:43 +08:00
docs(): improve the docs for firebase dynamic links (#1718)
* Improved the docs for firebase dynamic links The config.xml example needed to switch the ios and android tag. Added an example how to use onDynamicLink() * (doc) Reverted change and expanded example * (doc) Even more comments for clarity
This commit is contained in:
parent
0c79ac16ec
commit
3582e877d6
@ -40,16 +40,21 @@ export interface DynamicLinksOptions {
|
|||||||
* constructor(private firebaseDynamicLinks: FirebaseDynamicLinks) { }
|
* constructor(private firebaseDynamicLinks: FirebaseDynamicLinks) { }
|
||||||
*
|
*
|
||||||
* ...
|
* ...
|
||||||
*
|
* // The deepLink and callToActionText properties are optional
|
||||||
* const options: DynamicLinksOptions = {
|
* const options: DynamicLinksOptions = {
|
||||||
* title: 'My Title';
|
* title: 'My Title';
|
||||||
* message: 'My message';
|
* message: 'My message';
|
||||||
|
* deepLink: 'http://example.com/';
|
||||||
|
* callToActionText: 'Message on button';
|
||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
* this.firebaseDynamicLinks.sendInvitation(options)
|
* this.firebaseDynamicLinks.sendInvitation(options)
|
||||||
* .then((res: any) => console.log(res))
|
* .then((res: any) => console.log(res))
|
||||||
* .catch((error: any) => console.error(error));
|
* .catch((error: any) => console.error(error));
|
||||||
*
|
*
|
||||||
|
* this.firebaseDynamicLinks.onDynamicLink()
|
||||||
|
* .then((res: any) => console.log(res)) //Handle the logic here after opening the app with the Dynamic link
|
||||||
|
* .catch((error:any) => console.log(error));
|
||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
* @interfaces
|
* @interfaces
|
||||||
|
Loading…
Reference in New Issue
Block a user