thudugala / thudugala/Plugin.LocalNotification

Notification Receiving not working on iOS when in foreground

Open
#414 21 comments 0 reactions 1 assignee View on GitHub

@thudugala is already working on this.

Since Jun 6, 2023.

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

Description

Describe the bug
Notification Receiving not working on iOS

To Reproduce
Use sample code in the repo and add
LocalNotificationCenter.Current.NotificationReceived += NotificationRecived;

private void NotificationRecived(NotificationEventArgs e) { MainThread.BeginInvokeOnMainThread(() => Shell.Current.DisplayAlert(GlobalConstants.Notification.SyncNotificationTitle, GlobalConstants.Notification.SyncNotificationDesc, AppRes.Ok)); }

Expected behavior
Should fire the event in the foreground and the user can do his logic

Platform:

  • OS: iOS
  • Version 16.2

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.