It turned out to be a bug in Firebase Cloud Messaging. I've turned off method swizzling and it worked. Look up on the internet "Method swizzling in Firebase Cloud Messaging" on how to turn it off
Post
Replies
Boosts
Views
Activity
I'm experiencing the same issue, but it also happens on a real iPhone. Not getting silent notification when it's a SwiftUI app. When I remove @main from struct App and put @main at AppDelegate, everything works like a charm. I think it's a bug in SwiftUI
Ended up by performing authentication in the default external browser
Update Cocoapods to at least 1.10 Code Block sudo gem install cocoapods -n/usr/local/bin -v 1.10.0.rc.1 It helped me. I've installed cocoapods v. 1.10.0. I also cleaned project, the build forlder and derived data, restarted XCode and then this issue finally gone