thudugala / thudugala/Plugin.LocalNotification

Action buttons has no effect if app is closed

Open
#423 18 comments 0 reactions 1 assignee View on GitHub

@thudugala is already working on this.

Since Jun 11, 2023.

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

Description

Describe the bug
If I receive a notification either with the app open or closed, if I then close the application, the action button presses I make are ignored and the notification will simply just stay in the notification tray with no action taken.

If the app is then opened, the notification will now work and clicking the action button will dismiss the notification and run the code that it should.

To Reproduce
Steps to reproduce the behavior:

  1. Trigger a notification in Android with an action button
  2. Release it in "Release" mode so that the application can be fully closed
  3. Click the action button and notice how nothing happens
  4. Open back up the app to confirm that it does indeed work as long as the app is not closed

Expected behavior
I was expecting the action buttons to behave equally when the app is open vs closed

Screenshots
I'll gladly do if my description don't suffice

Platform (please complete the following information):

  • OS: Android
  • Version OxygenOS 11.1.2.2

Smartphone (please complete the following information):

  • Device: OnePlus 6t and Samsung tablet Galaxy Tab S5e
  • OS: OxygenOS
  • Version: 11.1.2.2

Additional context
I have minimum code to generate the notification and action buttons, and I have scheduled the notifications if that makes any difference.
Also, no intentflags were set, as I'm unsure of what exactly those does (maybe related?)

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.