Skip to content
This repository has been archived by the owner on Mar 27, 2020. It is now read-only.

Unable to get Success or failure callback for cordova 5.0 & android version 5.1.1 #12

Open
pallaviMN opened this issue Jun 6, 2016 · 3 comments
Labels

Comments

@pallaviMN
Copy link

No description provided.

@disusered disusered added the bug label Nov 9, 2016
@asethwright
Copy link

Hi, thanks a lot for working on this plugin. Just wondering if there was any update to this bug?

@pallaviMN
Copy link
Author

no i am not using it

@SvenSiwek
Copy link

I found a solution for me.
I dont need the fileinfo in the callback.
In file www/disusered.safe.js I have comment out the original exec() and replaced with a shorter one.

`
encrypt: function(path, password, success, error) {
var encryptSuccess, encryptError;
if (!path || arguments.length === 0) return;

// encryptSuccess = onSuccess.bind(null, success);
// encryptError = onError.bind(null, error);

// exec(encryptSuccess, encryptError, 'Safe', 'encrypt', [path, password]);
exec(success, error, 'Safe', 'encrypt', [path, password]);
},

/**

  • decrypt
  • @param {String} path File URI
  • @param {String} password Password for decryption
  • @param {Function} success Success callback
  • @param {Function} error Failure callback
  • @returns {void}
    */
    decrypt: function(path, password, success, error) {
    var decryptSuccess, decryptError;
if (!path || arguments.length === 0) return;

// decryptSuccess = onSuccess.bind(null, success);
// decryptError = onError.bind(null, error);

// exec(decryptSuccess, decryptError, 'Safe', 'decrypt', [path, password]);
exec(success, error, 'Safe', 'decrypt', [path, password]);
}

};`

If you are using cordova be aware to find the right disusered.safe.js !!!

Sven

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants