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.

Prevent banner from display

See original GitHub issue

Is it possible to avoid showing notification banner if app is in foreground? I am trying to show Alert dialog instead notification banner when app is in foreground.

FCM.scheduleLocalNotification({
      fire_date: ...,
      id: ...,
      body: ...,
      show_in_foreground: false
  })

show_in_foreground - doesn’t change anything. I actually use AppState to check in ‘FCM.on’ if app is in foreground. But in this case I want just to show Alert not both. Any idea about this?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
evollucommented, Aug 29, 2017

In readme you will see

case NotificationType.WillPresent:
                  notif.finish(WillPresentNotificationResult.All) //other types available: WillPresentNotificationResult.None
                  break;

finish with WillPresentNotificationResult.None

0reactions
vvustscommented, Aug 29, 2017

Yes, that solve the issue. Thanks 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can I turn off or disable the Info Banner display on my TV?
Google TV and Android TV models · Select Channels & Inputs → Info banner → set to disable. · Select Watching TV →...
Read more >
Can the Info Banner display be turned off or disabled? | Sony AP
Select Channels & Inputs → Info banner → set to disable. · Select Watching TV → Info banner → Hidden or set to...
Read more >
The 5 Best Ways to Minimize Banner Blindness But Still ...
The 5 best ways advertisers can minimize banner blindness · 1. Understand how people read on the web · 2. Use color to...
Read more >
What is Banner Blindness? + 11 Clever Methods to Avoid It
Banner blindness happens when a user misses or ignores an advertisement on a website. It can be frustrating for businesses.
Read more >
How To Protect Vinyl Banners From Damage - Eazy Print
Outdoor banners can be attached to virtually any structure but firstly make sure that it is stable and will remain in situ for...
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