4

I am implemented on FCM in swift 3.0. FCM notification is working if my application is in foreground properly, but notification is not getting if application is in background or in inactive state. I have implemented all the steps provided by firebase, below function getting called only app is active.

func application(_ application: UIApplication,
                     didReceiveRemoteNotification userInfo: [AnyHashable : Any],
                     fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void)

Please suggest if there is any better way to do this.

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807

0 Answers0