Unable to get message_id from remote push
Closed this issue · 2 comments
vaqueromena commented
Hi all,
Could you explain me how to get message_id (push_id) for opened/ received push?
wfhm commented
Do you mean the Notification ID from the Message History in the Control Panel? If so, there is no dedicated method to get this data as this ID is designed to only be used internally. However, you can still get it from the "metadata" dictionary from the payload of a push in onPushAccepted:
and/or onPushReceived:
callbacks:
- (void)onPushAccepted:(PushNotificationManager *)pushManager withNotification:(NSDictionary *)pushNotification onStart:(BOOL)onStart {
NSString* uid = [[pushNotification objectForKey:@"md"] objectForKey:@"uid"];
...
}
vaqueromena commented
Thank you @wfhm