File tree Expand file tree Collapse file tree 4 files changed +10
-6
lines changed
Framework/OneSignal.framework/Versions/A Expand file tree Collapse file tree 4 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 11Pod ::Spec . new do |s |
22 s . name = "OneSignal"
3- s . version = "2.12.1 "
3+ s . version = "2.12.2 "
44 s . summary = "OneSignal push notification library for mobile apps."
55 s . homepage = "https://onesignal.com"
66 s . license = { :type => 'MIT' , :file => 'LICENSE' }
Original file line number Diff line number Diff line change @@ -51,16 +51,20 @@ - (NSDictionary * _Nonnull)jsonRepresentation {
5151 let json = [NSMutableDictionary new ];
5252
5353 json[@" session" ] = OS_SESSION_TO_STRING (self.session );
54+ json[@" id" ] = self.name ;
55+ json[@" timestamp" ] = @(self.timestamp .intValue );
56+ json[@" weight" ] = self.weight .stringValue ;
57+
58+ if (!self.notificationIds ) {
59+ json[@" notification_ids" ] = [NSArray new ];
60+ return json;
61+ }
5462
5563 NSError *error;
5664 NSData *jsonNotificationIds = [NSJSONSerialization dataWithJSONObject: self .notificationIds options: NSJSONWritingPrettyPrinted error: &error];
5765 NSString *stringNotificationIds = [[NSString alloc ] initWithData: jsonNotificationIds encoding: NSUTF8StringEncoding];
5866 json[@" notification_ids" ] = stringNotificationIds;
5967
60- json[@" id" ] = self.name ;
61- json[@" timestamp" ] = @(self.timestamp .intValue );
62- json[@" weight" ] = self.weight .stringValue ;
63-
6468 return json;
6569}
6670
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ @interface OneSignal (SessionStatusDelegate)
132132
133133@implementation OneSignal
134134
135- NSString * const ONESIGNAL_VERSION = @" 021201 " ;
135+ NSString * const ONESIGNAL_VERSION = @" 021202 " ;
136136static NSString * mSDKType = @" native" ;
137137static BOOL coldStartFromTapOnNotification = NO ;
138138
You can’t perform that action at this time.
0 commit comments