ionic-team / ionic-plugin-deeplinks

Handle deeplinks into your Ionic/Cordova apps from Universal Links, App Links, and Custom URL schemes. For those using Ionic 2, there are some nice goodies that make life easier.
Other
332 stars 220 forks source link

Uninstalling the Plugin gives Error: Variable(s) missing (use: --variable URL_SCHEME=value --variable DEEPLINK_HOST=value) #258

Open Mr-Anonymous opened 2 years ago

Mr-Anonymous commented 2 years ago

I have ionic 6 and when I installed this plugin I noticed these 2 things:

  1. After installation, the noticed that the config.xml file is not updated with the deeplinks plugin details like it used to before.

  2. When I try to uninstall the plugin, I then get the following error message:

$ ionic cordova plugin rm ionic-plugin-deeplinks
> cordova plugin remove ionic-plugin-deeplinks
Variable(s) missing (use: --variable URL_SCHEME=value --variable DEEPLINK_HOST=value).

  ─────────────────────────────────────────────────

     Ionic CLI update available: 6.18.1 → 6.18.2
          Run npm i -g @ionic/cli to update

  ─────────────────────────────────────────────────

[ERROR] An error occurred while running subprocess cordova.

        cordova plugin remove ionic-plugin-deeplinks exited with exit code 1.

        Re-running this command with the --verbose flag may provide more information.

I install the plugin using this command:

ionic cordova plugin add ionic-plugin-deeplinks --variable URL_SCHEME=mywebsite --variable DEEPLINK_SCHEME=https --variable DEEPLINK_HOST=www.mywebsite.com.au --variable ANDROID_PATH_PREFIX=/

My Ionic Info:

$ ionic info

Ionic:

   Ionic CLI                     : 6.18.1 (/Users/neel/.nvm/versions/node/v17.4.0/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 6.0.5
   @angular-devkit/build-angular : 13.0.4
   @angular-devkit/schematics    : 13.0.4
   @angular/cli                  : 13.0.4
   @ionic/angular-toolkit        : 5.0.3

Cordova:

   Cordova CLI       : 11.0.0
   Cordova Platforms : android 10.1.1, ios 6.2.0
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 9 other plugins)

Utility:

   cordova-res : 0.15.4
   native-run  : 1.5.0

System:

   Android SDK Tools : 26.1.1 (/Users/neel/Library/Android/sdk)
   ios-deploy        : 1.11.4
   ios-sim           : 8.0.2
   NodeJS            : v17.4.0 (/Users/neel/.nvm/versions/node/v17.4.0/bin/node)
   npm               : 8.3.1
   OS                : macOS Monterey
   Xcode             : Xcode 13.2.1 Build version 13C100
baraaksayeth commented 1 year ago

same issue here

chacabuk commented 1 year ago

Try this: cordova plugin remove ionic-plugin-deeplinks --variable URL_SCHEME=xxx --variable DEEPLINK_HOST=xxx