@uptownjimmy wrote:
This function has been deprecated in favor of IonicCordova.getAppDetails.
IonicCordova.getAppInfo @ common.js:1287This error has been appearing in “chrome://inspect/#devices” console for us and we don’t know why.
The code printing this is in plugins/cordova-plugin-ionic/dist/common.js.
var IonicCordova = /** @class */ (function () { function IonicCordova() { this.deploy = new IonicDeploy(this); } IonicCordova.prototype.getAppInfo = function (success, failure) { console.warn('This function has been deprecated in favor of IonicCordova.getAppDetails.'); this.getAppDetails().then(function (result) { return success(result); }, function (err) { typeof err === 'string' ? failure(err) : failure(err.message); }); }; IonicCordova.prototype.getAppDetails = function () { return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) { return [2 /*return*/, new Promise(function (resolve, reject) { cordova.exec(resolve, reject, 'IonicCordovaCommon', 'getAppInfo'); })]; }); }); }; return IonicCordova; }());
Posts: 1
Participants: 1