Skip to content

🐛 [firebase_messaging] Flutter Firebase messaging service not working on IOS Archive IPA #4577

@hamza-gaya

Description

@hamza-gaya

My token is correct. Although I have tried revoking the certificate and APN key and generated a new provisioning profile for my flutter iOS app and reconfigured my app again with this new certificate, provisioning profile and the APN key. I also removed the reference of my google info.plist file in runner in xcode and re added the reference again. I also removed my entire app from the firebase and then generated a new file google-info.plist file and then added the reference again in the xcode in main runner folder but nothing worked. Also I have tried deleting the reference and file of entitlement included in the runner folder and reconfigured capabilities of background modes and push notification but still no luck. One day before it worked magically after some time but now it's not working on Archive IPA, Although we are recieving notifications in debug and release mode while building our app from mac. I don't know what the fuck is going on in this stupid IOS technology. However all things are working fine and smoothly on android apk. In short I have tried all things but nothing works.

This is my raw json data while testing from post man:
{
"to" :
"esvDPL_gZ0PckAzrH35KWo:APA91bHMA23iTQii7y8V1Ws2BSBkVqQXA0edfcFJATdZNyHJTLUoWZbCRiPcBVjqiTAWarc4OdzyBdMVItj4V1P4MBo0i5ivoXdOFzU89XBUwsYBq7EzHDfzyiLwyGhxzVjtdQw8JYHO",
"collapse_key" : "New Message",
"notification" : {
"body" : "Body of Your Notification",
"title": "Title of Your Notification"
},
"data" : {
"body" : "Body of Your Notification",
"title": "Title of Your Notification"
}
}
below is my screen shot of the result
Screenshot 2021-01-06 at 11 09 12 AM

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs AttentionThis issue needs maintainer attention.impact: deprecated-versionThis bug exists only in an older version and is no longer present in later releases.platform: iosIssues / PRs which are specifically for iOS.type: bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions