My app receives push notifications normally but none of the UIApplicationDelegate
methods are called (looking at application(_:didReceiveRemoteNotification:)
specifically). This only happens in the first session of the app (the session where user approves push notifications).
If I kill the app and run it again, I still receive the notifications but then the delegate methods are called correctly.
How is this possible, has anyone face this problem before? It's a pretty basic implementation of push notifications.