Open mabreu14 opened 5 years ago
var api = require('./mx/api')
, analytics = require('universal-ga');
module.exports = function downloadPass(name, barcode) {
let clientId = api.options['clientId']
, baseUrl = api.options['host'];
return new Promise((resolve, reject) => {
Passbook.downloadPass(`xxxxxxx`, (pass, added) => {
if(added) {
Passbook.openPass(pass);
}
resolve();
}, err => {
analytics.exception(['Apple Wallet Error', err].join(': '));
reject();
});
});
};
Am getting the same error.
When debugging I notice that the call to get the pass is happening twice and I am getting an error 'No data supplied'. If I manually make the call to get the pass I can see that is returning a valid pass so that is not the issue.