dont get notification when my app is kill
<p>when my app is in background or foreground i can get notification but when my app is kill . i can't get notification .
i use of fcm ...
this is my payload that call via postman .</p>

<pre><code>{
"registration_ids":
    ["...."],

  "notification":{  
     "sound":"default",
     "title":"testNotif",
     "body":"welcome in the shop Apple owner"
  }

}
</code></pre>

<p>This is my <strong>appdelegate</strong>:</p>

<pre><code>import UIKit
import UserNotifications

import Firebase
import FirebaseInstanceID
import FirebaseMessaging

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

var window: UIWindow?

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -&gt; Bool {

    if #available(iOS 10.0, *) {
        let authOptions : UNAuthorizationOptions = [.alert, .badge, .sound]
        UNUserNotificationCenter.current().requestAuthorization(
            options: authOptions,
            completionHandler: {_,_ in })

        UNUserNotificationCenter.current().delegate = self

        FIRMessaging.messaging().remoteMessageDelegate = self

    } else {
        let settings: UIUserNotificationSettings =
            UIUserNotificationSettings(types:  [.alert, .badge, .sound], categories: nil)
        application.registerUserNotificationSettings(settings)
    }

    application.registerForRemoteNotifications()

    FIRApp.configure()

    return true
}

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


}

func application(_ application: UIApplication,
                 didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
    FIRInstanceID.instanceID().setAPNSToken(deviceToken as Data, type: FIRInstanceIDAPNSTokenType.prod)
}

func tokenRefreshNotification(notification: NSNotification) {
    if let refreshedToken = FIRInstanceID.instanceID().token() {
        print("InstanceID token: \(refreshedToken)")
    }

    connectToFcm()
}

func connectToFcm() {
    FIRMessaging.messaging().connect { (error) in
        if (error != nil) {
            print("Unable to connect with FCM. \(error)")
        } else {
            print("Connected to FCM.")
        }

        if let refreshedToken = FIRInstanceID.instanceID().token() {
            Common.tokenFCM = refreshedToken
            print("InstanceID token: \(refreshedToken)")
        }
    }
}

func applicationDidBecomeActive(_ application: UIApplication) {
    connectToFcm()
}

}


@available(iOS 10, *)
extension AppDelegate : UNUserNotificationCenterDelegate {


    private func userNotificationCenter(center: UNUserNotificationCenter,
                                willPresentNotification notification: UNNotification,
                                withCompletionHandler completionHandler: (UNNotificationPresentationOptions) -&gt; Void) {
        let userInfo = notification.request.content.userInfo
        print("&lt;&lt;&lt;&lt;&lt;&lt;&lt; %@", userInfo)
    }
}

extension AppDelegate : FIRMessagingDelegate {
    func applicationReceivedRemoteMessage(_ remoteMessage: FIRMessagingRemoteMessage) {
        print("&gt;&gt;&gt;&gt;&gt; %@", remoteMessage.appData)

    }
}
</code></pre>