question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

IOS: FCM notification not working with Release mode

See original GitHub issue

Hello,

We are using this plugin for xamarin forms And we successfully tested android Ad-Hoc apk. For iPhone we are able to get notification in debug mode but in release/ production mode its not working, we are not getting any notifications.

We added APNs authentication key (.p8) in firebase console project. also followed every step given in Getting started.

We used FirebaseNet.Messaging nuget package to send data and also tested with Postman

We also added Apple Push Notification service SSL Certificate and Production SSL Certificate. We set Background modes : Remote notification checked. And FirebaseAppDelegateProxyEnabled to No in Info.plist.

The Json we are sending:

{
   "to": "/topics/TSCG230_XXXXX2",
   "priority" : "high",
      "notification": {
    "body": "Hello",
    "title": "This is test message.",
    "content_available" : true,
    "sound": "Alarm.wav"
   },
   "data": {
        "title" : "TSCG230_XXXXX2",
        "infoType" : "LEL#",
        "body" : "00100",
        "notiType" : "Alarm"
     }
}

Version Number of Plugin: v1.0.4 Device Tested On: iPhone 4s Simulator Tested On: - Version of VS: VS2017 Community Version of Xamarin: latest stable

Steps to reproduce the Behavior

Create ipa file and test on iPhone 4s.

Expected Behavior

It should show notification while application is in background as it is showing in debug mode.

Actual Behavior

Its not showing notification while application is in background.

Let me know if any information is needed. Please help us to figure out the issue. Thanks.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
ashishbpatil1commented, Sep 23, 2017

It worked on testflight after enabling push notification in Entitlements.plist and by setting value of key app-enviroment to production (manually) and also by setting FirebaseAppDelegateProxyEnabled to Yes in Info.plist.

thanks, you can close the issue.

0reactions
vincentcastagnacommented, Jan 9, 2019

@vpiliado How did you manage to get it work ? Setting FirebaseAppDelegateProxyEnabled to true ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

flutter: fcm ios push notifications doesn't work in release ...
dart in release mode to build my app on my phone, fcm notifications doesn't work anymore, while it works in development mode, anyone...
Read more >
[firebase_messaging] No Message in iOS Release Mode
I have the same problem as @csbence10 , just do not know what happens here. Close the app one time and open it...
Read more >
Not receiving FCM push notifications on iOS : r/flutterhelp
My iOS app wont receive any FCM push notifications on iOS 14+. ... is the "Push Notifications" entitlement in Xcode for release mode....
Read more >
Push Notification not Working in Release Mode: How to Fix
We'll also explain what Firebase Cloud Messaging ( FCM ) is and how it's used in ... Push Notification not Working in Release...
Read more >
FCM not generating device token in Release mode using ...
Hi All, I am implementing Push notifications in Xamarin forms(Android). In Debug mode everything works fine. I am able to generate the token ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found