question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

showNotifications: false is not working

See original GitHub issue

Hi,

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:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
krthushcommented, Dec 16, 2019

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.

1reaction
bliulincommented, Nov 14, 2019

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found