将iPhone连接到计算机并运行应用程序但在使用testflight运行时未运行时通知。
func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
let refreshedToken = FIRInstanceID.instanceID().token()
tokenId = refreshedToken
print("InstanceID token: \(refreshedToken)")
FIRInstanceID.instanceID().setAPNSToken(deviceToken, type: FIRInstanceIDAPNSTokenType.sandbox)
}