We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51c60c1 commit 997d20fCopy full SHA for 997d20f
iOS_SDK/OneSignalSDK/Source/OneSignalHelper.m
@@ -376,7 +376,7 @@ + (NSMutableDictionary*)formatApsPayloadIntoStandard:(NSDictionary*)remoteUserIn
376
additionalData = nil;
377
else if (remoteUserInfo[@"os_data"]) {
378
[userInfo addEntriesFromDictionary:additionalData];
379
- if (!is2dot4Format)
+ if (!is2dot4Format && userInfo[@"os_data"][@"buttons"])
380
userInfo[@"aps"] = @{@"alert" : userInfo[@"os_data"][@"buttons"][@"m"]};
381
}
382
0 commit comments