ionic2 - Ionic3 FirebaseDynamiLinks plugin_not_installed -
when calling
firebasedynamiclinks.ondynamiclink()
i warnings
console.warn: native: tried calling firebasedynamiclinks.ondynamiclink, firebasedynamiclinks plugin not installed. console.warn: install firebasedynamiclinks plugin: 'ionic plugin add cordova-plugin-firebase-dynamiclinks'
but plugin installed:
ionic cordova plugin > cordova plugin ls ✔ running command - done! cordova-plugin-browsertab 0.2.0 "cordova-plugin-browsertab" cordova-plugin-buildinfo 1.1.0 "buildinfo" cordova-plugin-compat 1.1.0 "compat" cordova-plugin-console 1.0.7 "console" cordova-plugin-customurlscheme 4.3.0 "custom url scheme" cordova-plugin-device 1.1.6 "device" cordova-plugin-firebase-analytics 0.10.1 "firebaseanalyticsplugin" cordova-plugin-firebase-dynamiclinks 0.10.1 "firebasedynamiclinksplugin" cordova-plugin-inappbrowser 1.7.1 "inappbrowser" cordova-plugin-splashscreen 4.0.3 "splashscreen" cordova-plugin-statusbar 2.2.3 "statusbar" cordova-plugin-whitelist 1.3.2 "whitelist" cordova-plugin-x-socialsharing 5.1.8 "socialsharing" cordova-universal-links-plugin 1.2.1 "universal links plugin" es6-promise-plugin 4.1.0 "promise" ionic-plugin-deploy 0.6.7 "ionicdeploy" ionic-plugin-keyboard 2.2.1 "keyboard"
the method call throws error
plugin_not_installed
you need access ionic native/cordova plugin within platform.ready()
do:
constructor(private platform:platform){}
and in when call plugin:
this.platform.ready().then(() =>{ firebasedynamiclinks.ondynamiclink(); //.... });
Comments
Post a Comment