I have implemented firebase push notification in my app. Now I'm receiving notification details like this,
[AnyHashable("gcm.notification.details"): +12345, AnyHashable("gcm.notification.type"): video, AnyHashable("gcm.notification.group_name"): test, AnyHashable("gcm.message_id"): 0:1538469426956356%def3521bdef3521b, AnyHashable("google.c.a.e"): 1, AnyHashable("aps"): {
alert = "+12345";
}]
I have tried to get the value, but I'm getting it nil like this,
let notification = userInfo["type"] as? [AnyHashable: Any]
print(notification)
How can I get all the values from the notification?
typekey in your notification's payload.