thudugala / thudugala/Plugin.LocalNotification
Notification Tapped not working on iOS / Xamarin.Forms
@thudugala is already working on this.
Since Jun 8, 2023.
- 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:
- Install Plugin
- subscribe to events
- Tap on Notification / Actions
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.