IOS: FCM notification not working with Release mode
See original GitHub issueHello,
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:
- Created 6 years ago
- Comments:11 (2 by maintainers)
Top GitHub Comments
It worked on testflight after enabling push notification in Entitlements.plist and by setting value of key
app-enviroment
toproduction
(manually) and also by settingFirebaseAppDelegateProxyEnabled
toYes
in Info.plist.thanks, you can close the issue.
@vpiliado How did you manage to get it work ? Setting FirebaseAppDelegateProxyEnabled to true ?