thudugala / thudugala/Plugin.LocalNotification

MAUI 8 release mode android: notification is not pushed in 10 seconds from now

Open
#516 6 comments 0 reactions 1 assignee View on GitHub

@thudugala is already working on this.

Since Aug 12, 2024.

Android bug
Dominant language
C#
Stars
474
Forks
73
PR merge metrics
No merged PRs in 30d

Description

Hello,

when I want to push a local notification in android in 10 seconds from now it will be delivered and work fine in debug builds but not in release builds. In release the local notification will not be pushed.

A local notification witch shall be delivered directly work in both build conditions.

To Reproduce
Steps to reproduce the behavior:

Build and start the sample project in debug mode
Push button to get notification directly
Notification will be delivered
Push button to get notification in 10 seconds
Notification will be delivered
Build and start sample project in release mode
Push button to get notification directly
Notification will be delivered
Push button to get notification in 10 seconds
Notification will NOT be delivered

Expected behavior
The notification shall be delivered after 10 seconds in release mode too, not only in debug

Platform (please complete the following information):

OS: Android 34

Smartphone (please complete the following information):

Device: Google Pixel 6a
OS: Android
Version 14

A sample project is attached.

Project is .NET MAUI 8 in Visual Studio 2022 Version 17.10.5 and Plugin.LocalNotification Version 11.1.4

LocalPushNotificationTest.zip

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.