Cordova-plugin-firebase-dynamiclinks installing error ionic 4


#1

hello programmers . :slightly_smiling_face:
i have a problem in my app in cordova-plugin-firebase-dynamiclinks when i try add this plugin >>>this error appear …
D:\ionic\basabiso>ionic cordova plugin add cordova-plugin-firebase-dynamiclinks --save --variable APP_DOMAIN=“basabiso.com” --variable APP_PATH=“basabiso.page.link”.

(node:8376) UnhandledPromiseRejectionWarning: CordovaError: Variable(s) missing (use: --variable PAGE_LINK_DOMAIN=value).
at Object.mergeVariables (C:\Users\ahmadklsany\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\plugin\util.js:77:15)
at C:\Users\ahmadklsany\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\plugin\add.js:104:40
at _fulfilled (C:\Users\ahmadklsany\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:787:54)
at self.promiseDispatch.done (C:\Users\ahmadklsany\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:816:30)
at Promise.promise.promiseDispatch (C:\Users\ahmadklsany\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:749:13)
at C:\Users\ahmadklsany\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:557:44
at flush (C:\Users\ahmadklsany\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:108:17)
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)
(node:8376) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:8376) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

this is my ionic info

Ionic:

** ionic (Ionic CLI) : 4.1.2 (C:\Users\ahmadklsany\AppData\Roaming\npm\node_modules\ionic)**
** Ionic Framework : ionic-angular 3.9.2**
** @ionic/app-scripts : 3.2.0**

Cordova:

** cordova (Cordova CLI) : 8.0.0**
** Cordova Platforms : android 7.0.0**
** Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.2, cordova-plugin-ionic-webview 2.1.3, (and 12 other plugins)**

System:

** Android SDK Tools : 25.2.3 (C:\Users\ahmadklsany\AppData\Local\Android\sdk)**
** NodeJS : v8.11.4 (C:\Program Files\nodejs\node.exe)**
** npm : 5.6.0**
** OS : Windows 10**

this is my plugins list

card.io.cordova.mobilesdk 2.1.0 “CardIO”
com.paypal.cordova.mobilesdk 3.5.0 “PayPalMobile”
cordova-android-support-gradle-release 1.4.4 “cordova-android-support-gradle-release”
cordova-plugin-camera 4.0.3 “Camera”
cordova-plugin-device 2.0.2 “Device”
cordova-plugin-file 6.0.1 “File”
cordova-plugin-file-transfer 1.7.1 “File Transfer”
cordova-plugin-filepath 1.4.2 “cordova-plugin-filepath”
cordova-plugin-firebase 2.0.0 “Google Firebase Plugin”
cordova-plugin-ionic-keyboard 2.1.2 “cordova-plugin-ionic-keyboard”
cordova-plugin-ionic-webview 2.1.3 “cordova-plugin-ionic-webview”
cordova-plugin-network-information 2.0.1 “Network Information”
cordova-plugin-splashscreen 5.0.2 “Splashscreen”
cordova-plugin-statusbar 2.4.2 “StatusBar”
cordova-plugin-whitelist 1.3.3 “Whitelist”
cordova-plugin-x-socialsharing 5.4.1 “SocialSharing”
es6-promise-plugin 4.2.2 “Promise”


#2

You have your PAGE_LINK_DOMAIN entered as your APP_PATH.

You need to add an additional variable to your command --variable PAGE_LINK_DOMAIN="basabiso.page.link"

Your command should be as follows:

ionic cordova plugin add cordova-plugin-firebase-dynamiclinks --save --variable APP_DOMAIN=“basabiso.com” --variable APP_PATH="/" --variable PAGE_LINK_DOMAIN=“basabiso.page.link”