OneSignal/OneSignal-Xamarin-SDK

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

MihaMarkic opened this issue · 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

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

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?

@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.