Skip to content

Commit

Permalink
The payload is already a JSON string (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
britzl committed Mar 14, 2022
1 parent 1f74a32 commit c902e25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extension-push/src/push_ios.mm
Expand Up @@ -110,7 +110,7 @@ - (void)application:(UIApplication *)application didReceiveLocalNotification:(UI
dmPush::Command cmd;
cmd.m_Callback = g_Push.m_Listener;
cmd.m_Command = dmPush::COMMAND_TYPE_LOCAL_MESSAGE_RESULT;
cmd.m_Result = ObjCToJson(notification.userInfo);
cmd.m_Result = strdup([[notification.userInfo valueForKey: @"payload"] UTF8String]);
cmd.m_WasActivated = wasActivated;

if (g_Push.m_Listener) {
Expand Down

0 comments on commit c902e25

Please sign in to comment.