[PR #2221] [MERGED] [SG-870] Android notification not showing when app is killed #45040

Closed
opened 2026-04-26 12:15:59 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/bitwarden/android/pull/2221
Author: @andrebispo5
Created: 12/5/2022
Status: Merged
Merged: 12/13/2022
Merged by: @andrebispo5

Base: masterHead: bugfix/SG-870-notification-not-show


📝 Commits (1)

  • a68c799 [SG-870] Add null check on notification received

📊 Changes

1 file changed (+2 additions, -1 deletions)

View changed files

📝 src/App/Services/PushNotificationListenerService.cs (+2 -1)

📄 Description

Type of change

  • Bug fix
  • New feature development
  • Tech debt (refactoring, code cleanup, dependency upgrades, etc)
  • Build/deploy pipeline (DevOps)
  • Other

Objective

If the user receives a passwordless login request and the application is not running on foreground or background the notification will not be shown.
This is due to an if condition to check if there is already a login request modal being presented to the user.

Code changes

Added null check on App.Current. This is null when the app is killed.

Before you submit

  • Please check for formatting errors (dotnet format --verify-no-changes) (required)
  • Please add unit tests where it makes sense to do so (encouraged but not required)
  • If this change requires a documentation update - notify the documentation team
  • If this change has particular deployment requirements - notify the DevOps team

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/bitwarden/android/pull/2221 **Author:** [@andrebispo5](https://github.com/andrebispo5) **Created:** 12/5/2022 **Status:** ✅ Merged **Merged:** 12/13/2022 **Merged by:** [@andrebispo5](https://github.com/andrebispo5) **Base:** `master` ← **Head:** `bugfix/SG-870-notification-not-show` --- ### 📝 Commits (1) - [`a68c799`](https://github.com/bitwarden/android/commit/a68c79979bdfdd19266d1321146354c4caa43e1f) [SG-870] Add null check on notification received ### 📊 Changes **1 file changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/App/Services/PushNotificationListenerService.cs` (+2 -1) </details> ### 📄 Description ## Type of change - [X] Bug fix - [ ] New feature development - [ ] Tech debt (refactoring, code cleanup, dependency upgrades, etc) - [ ] Build/deploy pipeline (DevOps) - [ ] Other ## Objective <!--Describe what the purpose of this PR is. For example: what bug you're fixing or what new feature you're adding--> If the user receives a passwordless login request and the application is not running on foreground or background the notification will not be shown. This is due to an if condition to check if there is already a login request modal being presented to the user. ## Code changes <!--Explain the changes you've made to each file or major component. This should help the reviewer understand your changes--> <!--Also refer to any related changes or PRs in other repositories--> Added null check on `App.Current`. This is null when the app is killed. ## Before you submit - Please check for formatting errors (`dotnet format --verify-no-changes`) (required) - Please add **unit tests** where it makes sense to do so (encouraged but not required) - If this change requires a **documentation update** - notify the documentation team - If this change has particular **deployment requirements** - notify the DevOps team --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-26 12:15:59 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/android#45040