sarriaroman / FabricPlugin

Fabric.io plugin for Cordova or Phonegap
MIT License
198 stars 159 forks source link

Resetting platforms fails to install fabric plugin #93

Open paishin opened 7 years ago

paishin commented 7 years ago

While trying to reset my platforms, fabric plugin fails to install I added the plugin using the correct credentials and used --save I can see that FABRIC_API_KEY, FABRIC_API_SECRET are set as variables in config.xml

I get the following error:

Installing "cordova-fabric-plugin" for android

Failed to install 'cordova-fabric-plugin':Error: Variable(s) missing: FABRIC_API_KEY, FABRIC_API_SECRET
    at C:\Users\Panicos\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:362:23
    at _fulfilled (C:\Users\Panicos\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:787:54)
    at self.promiseDispatch.done (C:\Users\Panicos\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:816:30)
    at Promise.promise.promiseDispatch (C:\Users\Panicos\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:749:13)
    at C:\Users\Panicos\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:557:44
    at flush (C:\Users\Panicos\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:108:17)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)

Error: Variable(s) missing: FABRIC_API_KEY, FABRIC_API_SECRET
lucianomlima commented 7 years ago

Variables in config.xml but same error here

814k31 commented 6 years ago

If you guys are still having issues Try make sure the fabric api key and variables go all through the chain I had issues when it was in my config.xml and package.json however needed to also be in plugins/fetch.json ios.json and android.json, also platforms/ios/ios.json and platforms/android/android.json to make sure it works