简体   繁体   English

FCM通知不在iOS 12中发布

[英]FCM Notification is not coming in iOS 12

I want to show only default UI notification in my app with FCM, Apple Push Notification is working fine in all iOS version, but in iOS 12 I did not get Notification. 我只想在使用FCM的应用程序中显示默认UI通知,Apple Push Notification在所有iOS版本中均能正常工作,但是在iOS 12中我没有收到Notification。

Will anybody help me to show default UI notification in iOS 12. What change i have to make in code or .plist? 有人可以帮我在iOS 12中显示默认的UI通知吗?我必须对代码或.plist进行哪些更改?

you should check that you get the device token in your app delegate or not if you does not receive the device token you should change the APNS Token type to one of them and then sync with your configuration: 您应该检查是否在应用程序委托中获取了设备令牌,如果没有收到设备令牌,则应将APNS令牌类型更改为其中之一,然后与您的配置同步:

FIRInstanceID.instanceID().setAPNSToken(deviceToken, type: .sandbox)

or 要么

FIRInstanceID.instanceID().setAPNSToken(deviceToken, type: .none)

or 要么

FIRInstanceID.instanceID().setAPNSToken(deviceToken, type: .prod)

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

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