0

I am using this FCM library to understand how push notifications work. Running the example project, everything works well but only if the app is in the foreground. When the app goes to the background, messages are not delivered and even the breakpoints are not hit. What might I be doing wrong because I need the notifications in the background and even when the app is killed

Ikiugu
  • 667
  • 1
  • 8
  • 16

1 Answers1

0

I had the same issue resolved it by going to Xcode->Capabilities->Background Modes

Toggle it on and check Background fetch and Remote Notifications respectively.

Here is a screenshot

  • I followed this tutorial [here](https://school.shoutem.com/lectures/react-native-chat-app-serverless-firebase-push-notifications/). Hope it helps you out – Shashank Srivastava Feb 15 '18 at 04:48