react-native-fcm: I Don't receive push notification when user kill app in "react-native-fcm": "^10.0.1", who can't hepl me (app in background and froground is working ).

there is a known issue with Firebase SDK with iOS 11 https://github.com/firebase/quickstart-ios/issues/327#issuecomment-331782299 fix is pod 'FirebaseInstanceID', "2.0.0"

Before openning an issue

  1. Reproduce it with the example project in this repo.
  2. If you can’t receive iOS notification, make sure you can receive notification using quickstart-ios project provided by Firebase team

When openning an issue, please include following information for better support

  1. What version of RN and react-native-fcm are you running?
  2. What device are you using? (e.g iOS9 emulator, Android 6 device)?
  3. Is your app running in foreground, background or not running?

About this issue

  • Original URL
  • State: open
  • Created 7 years ago
  • Comments: 33 (14 by maintainers)

Most upvoted comments

please read and answer these questions when you open issues

Before openning an issue

Reproduce it with the example project in this repo. If you can’t receive iOS notification, make sure you can receive notification using quickstart-ios project provided by Firebase team When openning an issue, please include following information for better support

What version of RN and react-native-fcm are you running? What device are you using? (e.g iOS9 emulator, Android 6 device)? Is your app running in foreground, background or not running?

try add content_available: true @sfm2222

try combine this with @ecarrera 's answer

{
	"to": "FCM_TOKEN_ID-xxxxxxxxxxxxxxx",
	"notification":{
	  	"title" : "traffic Title",
	  	"body" : "Traffic Body",
		"content_available" : true,
		"priority" : "low",
		"id": 4,
		"sound": ""
	},
       "data": {"show_in_foreground" : false}
}