Firebase Dynamic Links

Contents

Cordova plugin for Firebase Dynamic Links

https://github.com/chemerisuk/cordova-plugin-firebase-dynamiclinks

Ionic Firebase Dynamic Links插件的安装(Installation)

ionic cordova plugin add cordova-plugin-firebase-dynamiclinks npm install @ionic-native/firebase-dynamic-links

Ionic Firebase Dynamic Links插件支持的平台(Supported Platforms)

  • Android
  • iOS

Ionic Firebase Dynamic Links插件的用法(Usage)

import { FirebaseDynamicLinks } from '@ionic-native/firebase-dynamic-links';


constructor(private firebaseDynamicLinks: FirebaseDynamicLinks) { }

...
// Handle the logic here after opening the app with the Dynamic link
this.firebaseDynamicLinks.onDynamicLink()
  .subscribe((res: any) => console.log(res), (error:any) => console.log(error));