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
When Firebase notification method swizzling is enabled, the method application(_:didReceiveRemoteNotification:) does not execute. The expected behavior is for this method to be triggered upon receiving a remote notification while the app is in the background. However, it only triggers correctly if Firebase swizzling is explicitly disabled.
The method successfully executes when the Firebase notification swizzling is turned off, which suggests that Firebase's automatic method handling might be interfering with standard remote notification handling.
Hi @tyler6204, I wasn't able to reproduce the issue. You may try our sample app here to serve as your baseline for troubleshooting. Make sure to test it on a physical device instead of simulator. If the issue persists, you may provide a reproducible example.
Description
When Firebase notification method swizzling is enabled, the method application(_:didReceiveRemoteNotification:) does not execute. The expected behavior is for this method to be triggered upon receiving a remote notification while the app is in the background. However, it only triggers correctly if Firebase swizzling is explicitly disabled.
The method successfully executes when the Firebase notification swizzling is turned off, which suggests that Firebase's automatic method handling might be interfering with standard remote notification handling.
Reproducing the issue
Steps:
Enable Firebase notification swizzling (default behavior).
Implement application(_:didReceiveRemoteNotification:) to handle background notifications.
Send a remote notification with content-available payload.
Observe that the method does not execute.
Disable Firebase notification swizzling explicitly.
Send the remote notification again and confirm that the method executes as expected.
Minimal reproducible example:
Firebase SDK Version
10.9
Xcode Version
15.3
Installation Method
Swift Package Manager
Firebase Product(s)
Authentication, Messaging
Targeted Platforms
All
Relevant Log Output
If using Swift Package Manager, the project's Package.resolved
Expand
Package.resolved
snippetIf using CocoaPods, the project's Podfile.lock
Expand
Podfile.lock
snippetReplace this line with the contents of your Podfile.lock!
The text was updated successfully, but these errors were encountered: