You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While didReceiveRemoteNotification has been deprecated for a while there
may still be some older apps still expecting this to be called and
OneSignal should not cause any side effects.
Apple's iOS logic is both didReceiveRemoteNotification and
didReceiveRemoteNotification:fetchCompletionHandler are defined only the
newer API will be called. This means OneSignal must also replicate this
logic to prevent side effects.
https://developer.apple.com/documentation/uikit/uiapplicationdelegate/1623117-application?language=objc
Also removed our swizzling on didReceiveRemoteNotification as we no
longer support iOS 6. Apple added
application:didReceiveRemoteNotification:fetchCompletionHandler: in iOS
7 so we could have dropped this swizzling awhile ago.
// Fallback method - Normally this would not fire as oneSignalReceiveRemoteNotification below will fire instead. Was needed for iOS 6 support in the past.
0 commit comments