简体   繁体   English

未收到 FCM 注册令牌

[英]FCM registration token not recieved

I have implemented FCM for receiving notification by following this link.我已按照链接实施 FCM 以接收通知。 But my didReceiveRegistrationToken is not called and so I am not getting FCM token.但是我的didReceiveRegistrationToken没有被调用,所以我没有得到 FCM 令牌。 The app delegate conforms to the FIRMessagingDelegate protocol [FIRMessaging messaging].delegate = self;应用程序委托符合FIRMessagingDelegate协议[FIRMessaging messaging].delegate = self; Still the delegate method is not called.仍然没有调用委托方法。 What would be the mistake please help.会是什么错误请帮忙。

Please check your certificates and upload it necessary file in firebase.I think please double check In your xcode project you enables push Notification Capablities.请检查您的证书并将其上传到 firebase 中的必要文​​件。我想请仔细检查您的 xcode 项目中是否启用了推送通知功能。 Try this you may forget this step.试试这个你可能会忘记这一步。

Thanks谢谢

我的解决方案是Messaging.SharedInstance.AutoInitEnabled = true;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM