I am working with FCM in iOS development. I have successfully integrated firebase push notification service. It works for both foreground and background properly but i need the push data which is sent from firebase console. when the app is in Foreground, i can get all data perfectly but when app is in background, i can't get the data. can anyone help? Thanks.
Asked
Active
Viewed 166 times
0
-
Possible duplicate of [Making GCM work for iOS device in the background](https://stackoverflow.com/q/31109514/2754146). – Grimthorr Oct 16 '17 at 11:23
-
Check this answer https://stackoverflow.com/questions/46662976/firebase-push-notification-error-in-ios/46663088?noredirect=1#comment80275076_46663088 – M Faheem Rajput Oct 16 '17 at 12:08
-
i have added "content_available": 1 in the JSON payload, and now it works. Thanks everyone! – Rupom Oct 23 '17 at 04:59