Skip to content

Commit be5ca2a

Browse files
committed
2.8.2 Release
* Adds a new badge handling system in the OneSignalNotificationServiceExtension * The SDK now handles badge count logic on the device itself instead of relying on the backend * Adds support for the NSLocationAlwaysAndWhenInUseUsageDescription Info.plist location permissions key
1 parent 1e9a365 commit be5ca2a

File tree

5 files changed

+4
-5
lines changed

5 files changed

+4
-5
lines changed

OneSignal.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "OneSignal"
3-
s.version = "2.8.1"
3+
s.version = "2.8.2"
44
s.summary = "OneSignal push notification library for mobile apps."
55
s.homepage = "https://onesignal.com"
66
s.license = { :type => 'MIT', :file => 'LICENSE' }

iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Versions/A/Headers/OneSignal.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ typedef NS_ENUM(NSUInteger, OSNotificationDisplayType) {
122122

123123
/* The badge assigned to the application icon */
124124
@property(readonly)NSUInteger badge;
125+
@property(readonly)NSInteger badgeIncrement;
125126

126127
/* The sound parameter passed to the notification
127128
By default set to UILocalNotificationDefaultSoundName */
Binary file not shown.

iOS_SDK/OneSignalSDK/Source/OneSignal.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ @implementation OSPendingCallbacks
131131

132132
@implementation OneSignal
133133

134-
NSString* const ONESIGNAL_VERSION = @"020801";
134+
NSString* const ONESIGNAL_VERSION = @"020802";
135135
static NSString* mSDKType = @"native";
136136
static BOOL coldStartFromTapOnNotification = NO;
137137

iOS_SDK/OneSignalSDK/UnitTests/EmailTests.m

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ - (void)testUnauthenticatedEmail {
143143
[OneSignal setEmail:@"[email protected]" withSuccess:nil withFailure:nil];
144144

145145
[UnitTestCommonMethods runBackgroundThreads];
146-
NSLog(@"LAST REQ: %@", OneSignalClientOverrider.lastHTTPRequest);
146+
147147
//check to make sure the OSRequestCreateDevice HTTP call was made, and was formatted correctly
148148
XCTAssertTrue([NSStringFromClass([OSRequestUpdateDeviceToken class]) isEqualToString:OneSignalClientOverrider.lastHTTPRequestType]);
149149
XCTAssertEqual(OneSignalClientOverrider.lastHTTPRequest[@"app_id"], @"b2f7f966-d8cc-11e4-bed1-df8f05be55ba");
@@ -165,8 +165,6 @@ - (void)testUnauthenticatedEmail {
165165

166166
[UnitTestCommonMethods runBackgroundThreads];
167167

168-
NSLog(@"LAST HTTP TYPE: %@", OneSignalClientOverrider.lastHTTPRequestType);
169-
NSLog(@"LAST HTTP REQ: %@", OneSignalClientOverrider.lastHTTPRequest);
170168
//check to make sure the server gets updated with the new email
171169
XCTAssertTrue([NSStringFromClass([OSRequestUpdateDeviceToken class]) isEqualToString:OneSignalClientOverrider.lastHTTPRequestType]);
172170
XCTAssertEqual(OneSignalClientOverrider.lastHTTPRequest[@"app_id"], @"b2f7f966-d8cc-11e4-bed1-df8f05be55ba");

0 commit comments

Comments
 (0)