NativeScript / NativeScript/firebase

[messaging-core][ios] getCurrentToken stalls

Open
#287 0 comments 0 reactions 1 assignee View on GitHub

@triniwiz is already working on this.

Since Mar 30, 2026.

bug ios
Dominant language
TypeScript
Stars
62
Forks
53
Avg merge
8d 4h
Merged PRs (30d)
2

Description

The problem is in this code:
https://github.com/NativeScript/firebase/blob/5b7be942139e28f22d48a12fc8bc2d34db6a8a98/packages/firebase-messaging-core/index.ios.ts#L156-L159

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.