Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Android `showNotificationsWhenInForeground` not working

Open
#191 4 comments 12 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
android, firebase, typescript
Domain
mobile

Research direction

Start with the Android “Always show notifications when the application is in foreground” section of packages/firebase-messaging/README.md and the showNotificationsWhenInForeground setting shown in the report. Trace the Android messaging entry point that handles this option and verify the app displays notifications while foregrounded; add or update coverage if the repository provides a relevant test.

Written by the indexing model from the issue text.

Description

In android when i set showNotificationsWhenInForeground to true the app doesn't show the notification if it is in the foreground

firebase().messaging().showNotificationsWhenInForeground = true;

https://github.com/NativeScript/firebase/blob/main/packages/firebase-messaging/README.md#always-show-notifications-when-the-application-is-in-foreground

Dominant language
TypeScript
Stars
62
Forks
53
Avg merge
8d 4h
Merged PRs (30d)
2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from NativeScript/firebase

All issues in NativeScript/firebase

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.