I am struggling to display my push notifications that I am sending to my device from the FCM notification console. I can see the device is receiving the notification becaus
Inside method didRegisterForRemoteNotificationsWithDeviceToken, add the following code:
func application(application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: NSData) {
let tokenChars = UnsafePointer(deviceToken.bytes)
var tokenString = ""
for i in 0..
And do not forget to enable Push Notifications inside Capabilities.