Skip to content

Commit 8014bc5

Browse files
author
Vivek Ayer
committed
Merge pull request #17 from one-signal/fix_missing_additional_data_meta_fields
Fixed bug where title and sound would not be set on additional data.
2 parents 12504a2 + 48a66e9 commit 8014bc5

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed
1.91 KB
Binary file not shown.
295 Bytes
Binary file not shown.

iOS_SDK/OneSignal/OneSignal.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -875,6 +875,9 @@ - (NSDictionary*)getAdditionalData {
875875
additionalData[@"launchURL"] = self.lastMessageReceived[@"custom"][@"u"];
876876
}
877877

878+
if (!additionalData)
879+
additionalData = [[NSMutableDictionary alloc] init];
880+
878881

879882
// TODO: Add sound when notification sent with buttons.
880883
if (self.lastMessageReceived[@"aps"][@"sound"] != nil)

0 commit comments

Comments
 (0)