thudugala / thudugala/Plugin.LocalNotification

Notification Tapped not working on iOS / Xamarin.Forms

Open
#417 9 comments 0 reactions 1 assignee View on GitHub

@thudugala is already working on this.

Since Jun 8, 2023.

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

Description

Describe the bug
No NotificationActionTapped or NotificationReceived events on Xamarin.Forms.

To Reproduce
Steps to reproduce the behavior:

  1. Install Plugin
  2. subscribe to events
  3. Tap on Notification / Actions
  4. Nothing happens

Expected behavior
A clear and concise description of what you expected to happen.
Notification Events firing

Screenshots
If applicable, add screenshots to help explain your problem.

Platform (please complete the following information):

  • OS: [e.g. iOS] iOS 16
  • Version [e.g. 22]: 10.1.5

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6] IPhone Simulator / Physical Device
  • OS: [e.g. iOS8.1] 16
  • Version [e.g. 22] 10.1.5

Additional context
Add any other context about the problem here.
I noticed that the Plugin comes with it's own Notification Delegate for iOS as described here. But I haven't seen where it's actually initialized in the documentation or the sample. So setting it in AppDelegate.FinishedLaunching like this:
UNUserNotificationCenter.Current.Delegate = new UserNotificationCenterDelegate();
gave me the expected behaviour. Happy to add that to the documentation if desired.

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.