firebase / firebase-ios-sdk

Firebase SDK for Apple App Development
https://firebase.google.com
Apache License 2.0
5.69k stars 1.48k forks source link

didReceiveRemoteNotification is not called #13108

Closed DemetAkyolKapar closed 5 months ago

DemetAkyolKapar commented 5 months ago

Description

We received the June 20, 2024 the legacy Firebase Cloud Messaging (FCM) APIs will be discontinued email.

com.google.firebase firebase-admin 8.1.0

we added this to the backend side and we updated pod version to pod 'Firebase/Messaging' , '10.24.0'

In this case, when the pod version is notified with the old API, func application( _ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable: Any], fetchCompletionHandler handler: @escaping (UIBackgroundFetchResult) -> Void) is being called but It is not called in its new state

Reproducing the issue

No response

Firebase SDK Version

10.24.0

Xcode Version

15.0.1

Installation Method

CocoaPods

Firebase Product(s)

Messaging

Targeted Platforms

iOS

Relevant Log Output

No response

If using Swift Package Manager, the project's Package.resolved

Expand Package.resolved snippet
```json Replace this line with the contents of your Package.resolved. ```

If using CocoaPods, the project's Podfile.lock

Expand Podfile.lock snippet
```yml Replace this line with the contents of your Podfile.lock! ```
google-oss-bot commented 5 months ago

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

DemetAkyolKapar commented 5 months ago

{"message":{"notification":{"title":"Test","body":"Feed"},"data":{"message":"Feed"},"apns":{"headers":{"apns-priority":"10"},"payload":{"aps":{"badge":1,"collapse_key":"FCM_Sender","content_available":true,"time_to_live":90,"sound":"default"}}},"token":"c........"}} Data sent to mobile is like this @rizafran

rizafran commented 5 months ago

Thanks for reporting, @DemetAkyolKapar. May I know if you tapped the notification so the didReceiveRemoteNotification will be called? Also, could you provide your Podfile.lock file?

DemetAkyolKapar commented 5 months ago

@rizafran didReceiveRemoteNotification was not called when I tapped notification ,didReceiveRemoteNotification never called. Podfile.lock : PODS:

DEPENDENCIES:

SPEC REPOS: trunk:

SPEC CHECKSUMS: Alamofire: c1ca147559e730bfb2182c8c7aafbdd90a867987 AZSClient: efd576cabf56f97e38cb1b614739f4b0c1906392 BSImagePicker: 0fe04b574d4d6b81093785d2af6c26227efc8428 Charts: bcdcf49d3806f864b794c18e8818015ba01f4a1f Firebase: 91fefd38712feb9186ea8996af6cbdef41473442 FirebaseAnalytics: b5efc493eb0f40ec560b04a472e3e1a15d39ca13 FirebaseCore: 11dc8a16dfb7c5e3c3f45ba0e191a33ac4f50894 FirebaseCoreExtension: af5fd85e817ea9d19f9a2659a376cf9cf99f03c0 FirebaseCoreInternal: bcb5acffd4ea05e12a783ecf835f2210ce3dc6af FirebaseCrashlytics: af38ea4adfa606f6e63fcc22091b61e7938fcf66 FirebaseInstallations: 8f581fca6478a50705d2bd2abd66d306e0f5736e FirebaseMessaging: 4d52717dd820707cc4eadec5eb981b4832ec8d5d FirebaseRemoteConfigInterop: 6c349a466490aeace3ce9c091c86be1730711634 FirebaseSessions: 2651b464e241c93fd44112f995d5ab663c970487 GoogleAppMeasurement: f3abf08495ef2cba7829f15318c373b8d9226491 GoogleDataTransport: 6c09b596d841063d76d4288cc2d2f42cc36e1e2a GoogleMaps: 8436ab5d1c25e36915b2f7416d0c8e3fa2e76c61 GooglePlaces: aafe5990fa7951e98e078761bbdaaf236d7e0c65 GoogleUtilities: d053d902a8edaa9904e1bd00c37535385b8ed152 IQKeyboardManagerSwift: c7955c0bdbf7b2eb29bb7daaa44e3d90f55a9a85 MaterialComponents: b8c1c51c79d1ff882a7bcbaba6db7a95c2e12d1c MDFTextAccessibility: 94098925e0853551c5a311ce7c1ecefbe297cdb6 MotionAnimator: 5a1893b58fcf7a4664d81d69c9a09a0078c67e06 MotionInterchange: b600100244df56c4f462bdacbcd11c44e6305d05 MotionTransitioning: caaa488e0469d93f004793b96a2ed04447af808d nanopb: 438bc412db1928dac798aa6fd75726007be04262 PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47 PromisesSwift: 9d77319bbe72ebf6d872900551f7eeba9bce2851 Realm: 3601ef091c8c499a31101d8563b991e75546cdce RealmSwift: 8183818515471b01a99abdd2970f8e4fd52b6f4a Stripe: 5914399ac5878056b985d56b409cb4bb1e7fc7e8 SwiftyJSON: 2f33a42c6fbc52764d96f13368585094bfd8aa5e

PODFILE CHECKSUM: 64baf7704e9601d39b0d9b6923ff28d6b6385e06

COCOAPODS: 1.14.2