Skip to content

[messaging-core][ios] getCurrentToken stalls #287

@PeterStaev

Description

@PeterStaev

The problem is in this code:

if ((await this.hasPermission()) === AuthorizationStatus.DENIED) {
reject(new Error('Device is unauthorized to receive an APNSToken token.'));
return;
}

The problem happens in cases where the permission check executes before the call of the _onToken callback. This leaves the promise dangling and the function never completes.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingios

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions