更新时间:2021-08-04 22:02:16
我看到的第一件事是没有调用连接到 FIRMessaging
.尝试将其添加到您的 AppDelegate
:
The first thing I see is there's no call to connect to FIRMessaging
. Try adding this to your AppDelegate
:
func applicationDidBecomeActive(application: UIApplication) {
FIRMessaging.messaging().connectWithCompletion { error in
print(error)
}
}