danielsogl / awesome-cordova-plugins

Native features for mobile apps built with Cordova/PhoneGap and open web technologies. Complete with TypeScript support.
https://danielsogl.gitbook.io/awesome-cordova-plugins/
Other
2.41k stars 2.43k forks source link

Secure Storage, Missing Command Error #1600

Closed digaus closed 7 years ago

digaus commented 7 years ago

I'm submitting a ... (check one with "x") [x] bug report [ ] feature request

Current behavior:

When trying to create a Secure Storage this Error is thrown: 'Error: Missing Command Error'. I used Secure Storage successfully in an Ionic 2 Version an Windows but with the current version I get this error.

Expected behavior:

Create the Secure Storage...

Steps to reproduce:

Create new Ionic 3 app and add the plugin, then try to use it build/run it on a windows platform.

Related code:

this.secureStorage.create('key_store')
      .then((storage: SecureStorageObject) => {
        this.storage = storage;
      },
      error => {
         console.log(error);     <-- Always throwing this error...
      });

Other information:

global packages:

    @ionic/cli-plugin-proxy : 1.1.2
    @ionic/cli-utils        : 1.1.2
    Cordova CLI             : 6.5.0
    Ionic CLI               : 3.1.2

local packages:

    @ionic/app-scripts              : 1.3.7
    @ionic/cli-plugin-cordova       : 1.1.2
    @ionic/cli-plugin-ionic-angular : 1.1.2
    Ionic Framework                 : ionic-angular 3.2.1

System:

    Node       : v6.10.0
    OS         : Windows 10
    Xcode      : not installed
    ios-deploy : not installed
    ios-sim    : not installed
digaus commented 7 years ago

Only happens on Windows 10 platform... Android and Browser work fine. On old app Windows 10 was also working without problems.

digaus commented 7 years ago

Ok found the issue! Works fine with v2.6.5 of the cordova plugin... 2.6.6 breaks it on windows platform.