You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[@nativescript/localNotifications] - Android LocalNotifications.hasPermission() returns false after accepting notifications with firebase messaging #643
Both 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
This piece of code const authStatus = await firebase() .messaging() .requestPermission(<any>{}); console.log('Android - checking notification permissions ...', authStatus); const aceptedLocalNotifications = await LocalNotifications.hasPermission(); console.log('Android - LocalNotifications.requestPermission', aceptedLocalNotifications);
changed the title [-][@nativescript/localNotifications] - LocalNotifications.hasPermission() returns false after accepting notifications with firebase messaging[/-][+][@nativescript/localNotifications] - Android LocalNotifications.hasPermission() returns false after accepting notifications with firebase messaging[/+]on Sep 1, 2025
I solved this problem by downloading the package from the git repository and installing it from the local folder. I noticed that when I installed it from npmjs, the dependency "@nativescript-community/perms" was version 2.3.0 and in the repository they updated it to 3.0.4 commit
Activity
[-][@nativescript/localNotifications] - LocalNotifications.hasPermission() returns false after accepting notifications with firebase messaging[/-][+][@nativescript/localNotifications] - Android LocalNotifications.hasPermission() returns false after accepting notifications with firebase messaging[/+]guillemc23 commentedon Oct 22, 2025
I believe this happens to me as well, after requesting permission using
@nativescript-community/permstiagoeirinha commentedon Feb 25, 2026
I solved this problem by downloading the package from the git repository and installing it from the local folder. I noticed that when I installed it from npmjs, the dependency "@nativescript-community/perms" was version 2.3.0 and in the repository they updated it to 3.0.4 commit