Skip to content

Commit

Permalink
Merge pull request #17 from one-signal/fix_missing_additional_data_me…
Browse files Browse the repository at this point in the history
…ta_fields

Fixed bug where title and sound would not be set on additional data.
  • Loading branch information
Vivek Ayer committed Mar 2, 2016
2 parents 12504a2 + 48a66e9 commit 8014bc5
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 8014bc5

Please sign in to comment.