ios10, Swift 3 et Firebase les Notifications Push (FCM)

J'ai du mal à afficher mes notifications push que j'envoie à mon appareil de la FCM console de notification. Je peux voir l'appareil est à la réception de l'avis, parce que je peux voir le message que j'ai envoyer "test8"

Connected to FCM.
%@ [AnyHashable("notification"): {
    body = test8;
    e = 1;
},

Mais c'est pas grave si mon application est au premier plan ou d'arrière-plan je n'ai pas la notification s'affiche.

J'ai ajouté "contexte modes de téléchargements de l'Application de contenu en réponse à des notifications push" à l'info.plist. Mes certificats sont corrects et je n'ai pas de problème de la génération d'un jeton. Mon application est de recevoir les notifications mais juste de ne pas les afficher.

import UIKit
import UserNotifications
import Firebase
import FirebaseInstanceID
import FirebaseMessaging
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
//[START register_for_notifications]
        if #available(iOS 10.0, *) {
let authOptions : UNAuthorizationOptions = [.Alert, .Badge, .Sound]
UNUserNotificationCenter.currentNotificationCenter().requestAuthorizationWithOptions(
authOptions,
completionHandler: {_,_ in })
//For iOS 10 display notification (sent via APNS)
            UNUserNotificationCenter.currentNotificationCenter().delegate = self
//For iOS 10 data message (sent via FCM)
            FIRMessaging.messaging().remoteMessageDelegate = self
} else {
let settings: UIUserNotificationSettings =
UIUserNotificationSettings(forTypes: [.Alert, .Badge, .Sound], categories: nil)
application.registerUserNotificationSettings(settings)
application.registerForRemoteNotifications()
}
application.registerForRemoteNotifications()
//[END register_for_notifications]

FIRApp.configure()
//Add observer for InstanceID token refresh callback.
        NSNotificationCenter.defaultCenter().addObserver(self,
selector: #selector(self.tokenRefreshNotification),
name: kFIRInstanceIDTokenRefreshNotification,
object: nil)
return true
}
//[START receive_message]
    func application(application: UIApplication, didReceiveRemoteNotification userInfo: [NSObject : AnyObject],
fetchCompletionHandler completionHandler: (UIBackgroundFetchResult) -> Void) {
//If you are receiving a notification message while your app is in the background,
        //this callback will not be fired till the user taps on the notification launching the application.
        //TODO: Handle data of notification

//Print message ID.
        print("Message ID: \(userInfo["gcm.message_id"]!)")
//Print full message.
        print("%@", userInfo)
}
//[END receive_message]

//[START refresh_token]
    func tokenRefreshNotification(notification: NSNotification) {
if let refreshedToken = FIRInstanceID.instanceID().token() {
print("InstanceID token: \(refreshedToken)")
}
//Connect to FCM since connection may have failed when attempted before having a token.
        connectToFcm()
}
//[END refresh_token]

//[START connect_to_fcm]
    func connectToFcm() {
FIRMessaging.messaging().connectWithCompletion { (error) in
if (error != nil) {
print("Unable to connect with FCM. \(error)")
} else {
print("Connected to FCM.")
}
}
}
//[END connect_to_fcm]

func applicationDidBecomeActive(application: UIApplication) {
connectToFcm()
}
//[START disconnect_from_fcm]
    func applicationDidEnterBackground(application: UIApplication) {
FIRMessaging.messaging().disconnect()
print("Disconnected from FCM.")
}
//[END disconnect_from_fcm]
}
//[START ios_10_message_handling]
@available(iOS 10, *)
extension AppDelegate : UNUserNotificationCenterDelegate {
//Receive displayed notifications for iOS 10 devices.
    func userNotificationCenter(center: UNUserNotificationCenter,
willPresentNotification notification: UNNotification,
withCompletionHandler completionHandler: (UNNotificationPresentationOptions) -> Void) {
let userInfo = notification.request.content.userInfo
//Print message ID.
        print("Message ID: \(userInfo["gcm.message_id"]!)")
//Print full message.
        print("%@", userInfo)
}
}
extension AppDelegate : FIRMessagingDelegate {
//Receive data message on iOS 10 devices.
    func applicationReceivedRemoteMessage(remoteMessage: FIRMessagingRemoteMessage) {
print("%@", remoteMessage.appData)
}
}
// [END ios_10_message_handling]

Je avoir essayé à la recherche et à la résolution de ce problème sur mon propre mais je suis d'avoir des problèmes. Toute aide ou suggestion serait grandement apprécié.

U ne résoudre ur problème, je ne reçois pas de notifications dans Xcode 8.1 swift 2.3.depuis quelques jours, je suis en train d'essayer de côté de serveur je suis la réception et aussi quand j'envoie firebase console j'obtiens .Merci de u peut m'aider .

OriginalL'auteur Paul_D | 2016-09-27