File tree Expand file tree Collapse file tree 3 files changed +3
-0
lines changed
Framework/OneSignal.framework/Versions Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -488,6 +488,8 @@ + (id)prepareUNNotificationRequest:(NSDictionary *)data :(NSDictionary *)userInf
488488 [content setValue: data[@" m" ][@" title" ] forKey: @" title" ];
489489 if (data[@" m" ][@" body" ])
490490 [content setValue: data[@" m" ][@" body" ] forKey: @" body" ];
491+ if (data[@" m" ][@" subtitle" ])
492+ [content setValue: data[@" m" ][@" subtitle" ] forKey: @" subtitle" ];
491493 }
492494 else [content setValue: data[@" m" ] forKey: @" body" ];
493495 }
@@ -496,6 +498,7 @@ + (id)prepareUNNotificationRequest:(NSDictionary *)data :(NSDictionary *)userInf
496498 if ([data[@" aps" ][@" alert" ] isKindOfClass: [NSDictionary class ]]) {
497499 [content setValue: data[@" aps" ][@" alert" ][@" title" ] forKey: @" title" ];
498500 [content setValue: data[@" aps" ][@" alert" ][@" body" ] forKey: @" body" ];
501+ [content setValue: data[@" aps" ][@" alert" ][@" subtitle" ] forKey: @" subtitle" ];
499502 }
500503 else [content setValue: data[@" aps" ][@" alert" ] forKey: @" body" ];
501504 }
You can’t perform that action at this time.
0 commit comments