Skip to content

Commit 5bf72b5

Browse files
author
Alexis Oyama
committed
fix(ActionManager): Local push not showing the Open Action
This is due to using UserNotification framework. It calls didReceiveNotificationResponse instead of didReceiveLocalNotification, and have a different payload that we were checking for. This commit makes it compatible.
1 parent 7aad38a commit 5bf72b5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Leanplum-SDK/Classes/LPActionManager.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -818,6 +818,9 @@ - (void)listenForLocalNotifications
818818
} else {
819819
mutableInfo = [NSMutableDictionary dictionary];
820820
}
821+
822+
// Adding body message manually.
823+
mutableInfo[@"aps"] = @{@"alert":@{@"body": message} };
821824

822825
// Specify open action
823826
if (openAction) {

0 commit comments

Comments
 (0)