react-native-fcm: iOS error: Sending `messaging_notification_received` with no listeners registered

My application is receiving this warning “Sending messaging_notification_received with no listeners registered” and the callback is not calling. Android works fine.

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

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 1
  • Comments: 27 (12 by maintainers)

Most upvoted comments

notification: {
        body: req.body.message,
        title: req.body.title,
        sound: 'default',
        icon: 'new',
        
      },
content_available: true,
      data: req.body.data

then you should see this line triggered https://github.com/evollu/react-native-fcm/blob/master/Examples/simple-fcm-client/ios/SimpleFcmClient/AppDelegate.m#L65 or this line triggered if you are in foreground https://github.com/evollu/react-native-fcm/blob/master/Examples/simple-fcm-client/ios/SimpleFcmClient/AppDelegate.m#L45

issue sounds resolved