#I've noticed a problem with javascript located in the transferUtility.subscribe doesnt run while in the background. My current code is the following:
transferUtility.subscribe(id, (err: Error, task: TaskObject) => {
// Nothing in here will be run when in the background
if (err) {this._handleError(err); return;}
this._clearAndSetUploadTimeout();
const {bytes, totalBytes} = task;
const progress = Math.floor(bytes / totalBytes * 100);
this._updateProgress(progress);
this._updateComponentStateOnAWS3Task(task, {lat, lng});
});
Is this a bug or a limitation of the library or a restriction on the phones themselver?
#I've noticed a problem with javascript located in the
transferUtility.subscribedoesnt run while in the background. My current code is the following:Is this a bug or a limitation of the library or a restriction on the phones themselver?