From 3a42ee478fd387db28e23c761527720d23c3ffea Mon Sep 17 00:00:00 2001 From: teunklijn Date: Tue, 17 Sep 2019 21:55:14 +0200 Subject: [PATCH] fix(ios): localnotificationaction event contains notification id instead of the action id (#10940) Fixes TIMOB-27165, Fixes #10939 --- iphone/TitaniumKit/TitaniumKit/Sources/API/TiApp.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iphone/TitaniumKit/TitaniumKit/Sources/API/TiApp.m b/iphone/TitaniumKit/TitaniumKit/Sources/API/TiApp.m index 700b647b900..af17ea49791 100644 --- a/iphone/TitaniumKit/TitaniumKit/Sources/API/TiApp.m +++ b/iphone/TitaniumKit/TitaniumKit/Sources/API/TiApp.m @@ -1376,7 +1376,7 @@ + (NSDictionary *)dictionaryWithUserNotification:(UNNotification *)notification [event setObject:NULL_IF_NIL(notification.request.content.userInfo) forKey:@"userInfo"]; [event setObject:NULL_IF_NIL(notification.request.content.categoryIdentifier) forKey:@"category"]; [event setObject:NULL_IF_NIL(notification.request.content.threadIdentifier) forKey:@"threadIdentifier"]; - [event setObject:NULL_IF_NIL(notification.request.identifier) forKey:@"identifier"]; + [event setObject:NULL_IF_NIL(identifier) forKey:@"identifier"]; // iOS 10+ does have "soundName" but "sound" which is a native object. But if we find // a sound in the APS dictionary, we can provide that one for parity