Ad

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.

Will anybody help me to show default UI notification in iOS 12. What change i have to make in code or .plist?

Ad

Answer

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:

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

or

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

or

FIRInstanceID.instanceID().setAPNSToken(deviceToken, type: .prod)
Ad
source: stackoverflow.com
Ad