Skip to content

Commit

Permalink
Fixed bug where title and sound would not be set on additional data.
Browse files Browse the repository at this point in the history
  • Loading branch information
jkasten2 committed Mar 2, 2016
1 parent 12504a2 commit 48a66e9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Binary file modified iOS_SDK/Framework/OneSignal.framework/Versions/A/OneSignal
Binary file not shown.
Binary file not shown.
3 changes: 3 additions & 0 deletions iOS_SDK/OneSignal/OneSignal.m
Original file line number Diff line number Diff line change
Expand Up @@ -875,6 +875,9 @@ - (NSDictionary*)getAdditionalData {
additionalData[@"launchURL"] = self.lastMessageReceived[@"custom"][@"u"];
}

if (!additionalData)
additionalData = [[NSMutableDictionary alloc] init];


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

0 comments on commit 48a66e9

Please sign in to comment.