FCM通知已在所有iOS设备上到达。但是通知无法在大约1年前注册的某些设备上起作用。 FCM令牌和APNs令牌似乎没有变化。为什么没有收到通知? FCM令牌必须过期吗?
XCode 10.1,Firebase 5.20.1
1.AppDelegate
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
```
Messaging.messaging().delegate = self
```
}
func application(application: UIApplication,
didRegisterForRemoteNotificationsWithDeviceToken deviceToken: NSData) {
```
Messaging.messaging().apnsToken = deviceToken
```
```
//store fcmtoken and apnstoken
```
}
func messaging(_ messaging: Messaging, didReceiveRegistrationToken fcmToken: String) {
```
//store fcmtoken and apnstoken
```
}
2.info.plist
FirebaseAppDelegateProxyEnabled = No
FCM令牌和APNs令牌没有更改,但是大约1年前安装的某些设备未收到通知。