ionic state restore
When i do ionic state restore , it stops! check in below and let me know plz
I use ionic 2.1.17 node 6.9.2
MELAS@MELAS-PC MINGW64 /d/Mobile apps/moodlemobile2-master $ ionic state restore Attempting to restore your Ionic application from package.json
Restoring Platforms
cordova platform add ios cordova platform add android
Restore platforms is complete
Restoring Plugins
cordova plugin add cordova-plugin-device cordova plugin add cordova-plugin-globalization cordova plugin add cordova-plugin-file cordova plugin add cordova-plugin-inappbrowser cordova plugin add cordova-plugin-file-transfer cordova plugin add cordova-plugin-network-information cordova plugin add cordova-plugin-camera cordova plugin add cordova-plugin-media-capture --variable CAMERA_USAGE_DESCRIPTION="We'd like to access your camera to let you take a photo" --variable PHOTOLIBRARY_USAGE_DESCRIPTION="We'd like like to open your photo library to let you pick a photo" --variable MICROPHONE_USAGE_DESCRIPTION="We'd like to access your microphone to let you record an audio" cordova plugin add cordova-plugin-splashscreen cordova plugin add cordova-plugin-statusbar cordova plugin add cordova-plugin-whitelist cordova plugin add https://github.com/Tunts/WebIntent cordova plugin add cordova-plugin-customurlscheme --variable URL_SCHEME="moodlemobile" cordova plugin add ionic-plugin-keyboard cordova plugin add https://github.com/ti8m/DocumentHandler cordova plugin add cordova-plugin-local-notifications-mm cordova plugin add cordova-plugin-zip cordova plugin add phonegap-plugin-push --variable SENDER_ID="302322576519" Caught exception: undefined
Mind letting us know? https://github.com/driftyco/ionic-cli/issues
same issue
I fixed it by running $ ionic state reset.
run cordova plugin add phonegap-plugin-push --variable SENDER_ID="302322576519" directly to see what the exception actually says. The CLI isn't doing an ideal job of passing along the exception info right now.
I think I'm having the same issue. When I run ionic state restore I get the Caught Exception: undefined error. I don't think it's an issue with installing a particular plugin, since the error shows up after different plugins different times I run ionic state restore.
Also, I get the same error when running ionic state reset.
This is with ionic 2.2.1 and npm 2.14.7.
I managed to solve it by updating to latest version of npm, ionic-cli and cordova (used by the previous one). Seems to me it is an error on a previous version of cordova CLI, used by ionic-cli.
Make sure the names of installed plugins are the same as the "Cordova Plugins" site
I had the same problem with the call-number plugin In the fetch.json file in ./plugins the name was different than it was to be Example: Previous =
"Mx.ferreyra.callnumber": {
"Source": {
"Type": "registry",
"Id": "call-number"
},
"Is_top_level": true,
"Variables": {}
}
New =
"Call-number": {
"Source": {
"Type": "git",
"Url": "https://github.com/Rohfosho/CordovaCallNumberPlugin.git",
"Subdir": "."
},
"Is_top_level": true,
"Variables": {}
}
I solved by adding the plugin directly through the git url Example: Cordova plugin add https://github.com/Rohfosho/CordovaCallNumberPlugin.git
Thanks for the issue! This issue appears to be associated with an old version of the Ionic CLI. Please update to the latest CLI version, which supports all versions of the Ionic Framework. If the issue is relevant and if it persists after updating to the latest CLI version, please create a new issue.
Thank you for using Ionic!