thudugala / Plugin.LocalNotification

The local notification plugin provides a way to show local notifications from .Net MAUI and Xamarin Forms apps .
MIT License
419 stars 68 forks source link

Foreground notification on iOS with release 9.1.0 not working #231

Closed Balu2 closed 2 years ago

Balu2 commented 2 years ago

Previously I had version 9.0.1 of Plugin.Localnotifications installed. With that version I was able to receive local notifications when the app was in foreground, background and not started on iOS. After the installation of version 9.1.0 I only received notifio=cations when the app was in background or not started. When the app was in foreground no notifications at all.

Xamarin Forms: Version 5.0.0.2244

Platform: iOS version 14.8.1

Devive: iPAD Pro (4e generation)

thudugala commented 2 years ago

@masonyc do you have access to a mac to test this issue ?

thudugala commented 2 years ago

@Balu2 is

request.iOS.HideForegroundAlert = false;
Balu2 commented 2 years ago

@thudugala

Do I have it set explicitly? In your comments was defined:

   //
    // Summary:
    //     Setting this flag will prevent iOS from displaying the default banner when a
    //     Notification is received in foreground Default is false
    public bool HideForegroundAlert { get; set; }

Therefor I thought it was not neccesary to define it.

thudugala commented 2 years ago

@Balu2 can you please try v9.1.2

Balu2 commented 2 years ago

@thudugala, thanks for new version. I installed version 1.9.2 and everything works as expected.