Skip to content

[iOS] Doesnt run js in subscribe in the background? #40

@proProbe

Description

@proProbe

#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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions