NativeScript / NativeScript/firebase

Request permission Android doesn't resolve promise

Open
#272 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

When requesting for permission on Adnroid SDK 35 and i choose Don't allow, the function doesn't resolve function with auth status, it just prints 1 to console. This works fine if i sellect Allow from popup.

"@nativescript/firebase-core": "^3.3.2",
"@nativescript/firebase-messaging": "^3.3.2"

Aditionally if i'dont request permission for Android as per docs the variable isDeviceRegisteredForRemoteMessages is always false.

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.

Research direction

No files or tests are named. Reproduce the permission denial on Android SDK 35 with @nativescript/firebase-core and @nativescript/firebase-messaging 3.3.2, then trace the permission request entry point and remote-message registration state. Done means denial resolves with an auth status and the documented registration variable reports the expected state.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, firebase, typescript
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.