showNotifications: false is not working
See original GitHub issueHi,
I set showNotifications: false
but I still get firebase notification directly on Android,
I’m trying to push notification with Nativescript-local-notification plugin when I get notification from Firebase, but when I close the app, I get firebase notification and if I tap on it, app opens and my own notification pops up after that
Issue Analytics
- State:
- Created 4 years ago
- Comments:6
Top Results From Across the Web
ServiceWorkerRegistration.showNotification() - Web APIs | MDN
The default value is false . silent. When set indicates that no sounds or vibrations should be made. If options's silent is true...
Read more >Notifications.Web - The ShowNotifications Action does not ...
Dear team, In my xaf/asp.net project, the notification module is configurated as the following code snippet. notificationsModule1.
Read more >showNotification - R Shiny
If FALSE do not display. id, An ID string. This can be used to change the contents of an existing message with showNotification...
Read more >Angular 7 pwa/ SwPush - push notifications not working
I am not able to get actual push notifications. I am currently working on localhost (by running http-server after doing an ng-build) and...
Read more >showNotification: Show or remove a notification in shiny - Rdrr.io
If FALSE do not display. id. A unique identifier for the notification. id is optional for showNotification() : Shiny will automatically ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yeah following up on this, I found the same issue as @bliulin …
Do you guys know of any way of being able to use the Nativescript-local-notification plugin even when the app is closed?
I need to be able to use buttons/inputs on my notifications and the basic google FCM notification doesn’t allow for this on Android. I thought I found my solution when trying to use the local-notification plugin, but I can’t have it not working when the app is closed - i.e. I need to be able to notify my user with iteractive notifications even if the app is closed.
Hi @KEYHAN-A ,
This is a great insight. Indeed, I confirm that if you don’t put the notification section in the message, Android does not show a notification.
What I notice is that: a. If the app is running (in the background or foreground) and a data message is received, then the
addOnMessageReceivedCallback
gets called. b. If the app is not running and a message is sent, the addOnMessageReceivedCallback will get called once the app is running again (provided that the message is not expired).Thank you!