OneSignal-Xamarin-SDK icon indicating copy to clipboard operation
OneSignal-Xamarin-SDK copied to clipboard

[question]: Upgrading from 3.x to 4.x InFocusDisplaying(OSInFocusDisplayOption.Notification) equivalent?

Open MihaMarkic opened this issue 1 year ago • 3 comments

How can we help?

What is the exact equivalent for 3.x's InFocusDisplaying(OSInFocusDisplayOption.Notification) in 4.x? Upgrade docs are a bit vague on this: InFocusDisplaying - is replaced by adding NotificationWillShow (see below).

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

MihaMarkic avatar Nov 04 '22 13:11 MihaMarkic

I guess it's returning notification argument in NotificationWillShow event, like this:

OneSignalSDK.Xamarin.Core.Notification Default_NotificationWillShow(
            OneSignalSDK.Xamarin.Core.Notification notification)
        {
            return notification;
        }

Is this correct?

MihaMarkic avatar Nov 04 '22 14:11 MihaMarkic

@twelve-cgn Your answer to this question could have answered my question, but unfortunately that link is now dead (404). Please provide an updated link or fix this dead link.

tele-bird avatar Apr 29 '24 14:04 tele-bird