NativeScript / NativeScript/firebase
[messaging-core][ios] getCurrentToken stalls
Open
@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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.