Title: [@nativescript/localNotifications] - Android LocalNotifications.hasPermission() returns false after accepting notifications with firebase messaging · Issue #643 · NativeScript/plugins · GitHub
Open Graph Title: [@nativescript/localNotifications] - Android LocalNotifications.hasPermission() returns false after accepting notifications with firebase messaging · Issue #643 · NativeScript/plugins
X Title: [@nativescript/localNotifications] - Android LocalNotifications.hasPermission() returns false after accepting notifications with firebase messaging · Issue #643 · NativeScript/plugins
Description: Info "@nativescript/local-notifications": "^6.4.0", "@nativescript/android": "8.9.1", "@nativescript/firebase-messaging": "5.0.2", Problem Both LocalNotifications.hasPermission() and LocalNotifications.requestPermissions() return false i...
Open Graph Description: Info "@nativescript/local-notifications": "^6.4.0", "@nativescript/android": "8.9.1", "@nativescript/firebase-messaging": "5.0.2", Problem Both LocalNotifications.hasPermission() and LocalNotificat...
X Description: Info "@nativescript/local-notifications": "^6.4.0", "@nativescript/android": "8.9.1", "@nativescript/firebase-messaging": "5.0.2", Proble...
Opengraph URL: https://github.com/NativeScript/plugins/issues/643
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[@nativescript/localNotifications] - Android LocalNotifications.hasPermission() returns false after accepting notifications with firebase messaging","articleBody":"### Info\n\"@nativescript/local-notifications\": \"^6.4.0\",\n\"@nativescript/android\": \"8.9.1\",\n\"@nativescript/firebase-messaging\": \"5.0.2\",\n\n### Problem \nBoth LocalNotifications.hasPermission() and LocalNotifications.requestPermissions() return false in a application with already given permissions for push notifications. This does not allow for usage of the LocalNotifications.schedule with error \nThis piece of code \n`const authStatus = await firebase()\n\t\t\t\t\t.messaging()\n\t\t\t\t\t.requestPermission(\u003cany\u003e{});`\n`console.log('Android - checking notification permissions ...', authStatus);`\n`const aceptedLocalNotifications = await LocalNotifications.hasPermission();`\n`console.log('Android - LocalNotifications.requestPermission', aceptedLocalNotifications);`\n\nreturns \n` Android - checking notification permissions ... 0`\n` Android - LocalNotifications.requestPermission false`\n\n### Error \n\n Error in LocalNotifications.requestPermission: Error: Permission not granted\n\n","author":{"url":"https://github.com/joaomsg11","@type":"Person","name":"joaomsg11"},"datePublished":"2025-08-29T12:50:11.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/643/plugins/issues/643"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:575a1674-18c6-40e7-4b67-dabc954f9d58 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AD90:4BEBD:25C4F19:34349E8:69729A99 |
| html-safe-nonce | ed4d9b8f38270bffe9ba10fb30dce545c16a7b7d5833a1927b2a0ac77d6a71f9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDkwOjRCRUJEOjI1QzRGMTk6MzQzNDlFODo2OTcyOUE5OSIsInZpc2l0b3JfaWQiOiIxNjE1MDQ0NDYxMTE4NzkwMjk3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9b19e624d3858558a74a3ff0b183a001a76f8a7e1893e0f10ae8b04744e042cc |
| hovercard-subject-tag | issue:3366780470 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/plugins/643/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c052b00212b8e1ea71565fb9d2a7a470d9fcc8f6c80a4ce3b7788112df753203/NativeScript/plugins/issues/643 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c052b00212b8e1ea71565fb9d2a7a470d9fcc8f6c80a4ce3b7788112df753203/NativeScript/plugins/issues/643 |
| og:image:alt | Info "@nativescript/local-notifications": "^6.4.0", "@nativescript/android": "8.9.1", "@nativescript/firebase-messaging": "5.0.2", Problem Both LocalNotifications.hasPermission() and LocalNotificat... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | joaomsg11 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 72bb1c46bb1ebdc0dc83a0a57b64c3b4d668c125d1125d94898213a4c9db8da2 |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/plugins git https://github.com/NativeScript/plugins.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 288901292 |
| octolytics-dimension-repository_nwo | NativeScript/plugins |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 288901292 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/plugins |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7b2326416cb9f2fa4ab7b6ede33ad46d0dd431a1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width