Skip to content

Commit 9271672

Browse files
committed
2.10.0 release commit
1 parent 7fbff43 commit 9271672

File tree

8 files changed

+28
-4
lines changed

8 files changed

+28
-4
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.9.5"
3+
s.version = "2.10.0"
44
s.summary = "OneSignal push notification library for mobile apps."
55
s.homepage = "https://onesignal.com"
66
s.license = { :type => 'MIT', :file => 'LICENSE' }

OneSignalDynamic.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 = "OneSignalDynamic"
3-
s.version = "2.9.5"
3+
s.version = "2.10.0"
44
s.summary = "OneSignal push notification library for mobile apps."
55
s.homepage = "https://onesignal.com"
66
s.license = { :type => 'MIT', :file => 'LICENSE' }

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ For account issues and support please contact OneSignal support from the [OneSig
2626

2727
#### Supports:
2828
* Swift and Objective-C Projects
29-
* Supports iOS 7 to iOS 11.3
29+
* Supports iOS 7 to iOS 12.2

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,14 @@ typedef NS_ENUM(NSInteger, OSNotificationPermission) {
213213
OSNotificationPermissionProvisional
214214
};
215215

216+
typedef void (^OSNotificationDisplayTypeResponse)(OSNotificationDisplayType displayType);
217+
218+
// Notification Display Type Delegate
219+
// Allows apps to customize per-notification display-type
220+
@protocol OSNotificationDisplayTypeDelegate <NSObject>
221+
- (void)willPresentInFocusNotificationWithPayload:(OSNotificationPayload *)payload
222+
withCompletion:(OSNotificationDisplayTypeResponse)completion;
223+
@end
216224

217225

218226
// Permission Classes
@@ -402,6 +410,10 @@ typedef NS_ENUM(NSUInteger, ONE_S_LOG_LEVEL) {
402410

403411
+ (OSPermissionSubscriptionState*)getPermissionSubscriptionState;
404412

413+
// When the app is in-focus, this allows you to add a delegate that can customize the
414+
// display type for specific notifications
415+
+ (void)setNotificationDisplayTypeDelegate:(NSObject<OSNotificationDisplayTypeDelegate>*)delegate;
416+
405417
+ (void)addPermissionObserver:(NSObject<OSPermissionObserver>*)observer;
406418
+ (void)removePermissionObserver:(NSObject<OSPermissionObserver>*)observer;
407419

Binary file not shown.

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,14 @@ typedef NS_ENUM(NSInteger, OSNotificationPermission) {
213213
OSNotificationPermissionProvisional
214214
};
215215

216+
typedef void (^OSNotificationDisplayTypeResponse)(OSNotificationDisplayType displayType);
217+
218+
// Notification Display Type Delegate
219+
// Allows apps to customize per-notification display-type
220+
@protocol OSNotificationDisplayTypeDelegate <NSObject>
221+
- (void)willPresentInFocusNotificationWithPayload:(OSNotificationPayload *)payload
222+
withCompletion:(OSNotificationDisplayTypeResponse)completion;
223+
@end
216224

217225

218226
// Permission Classes
@@ -402,6 +410,10 @@ typedef NS_ENUM(NSUInteger, ONE_S_LOG_LEVEL) {
402410

403411
+ (OSPermissionSubscriptionState*)getPermissionSubscriptionState;
404412

413+
// When the app is in-focus, this allows you to add a delegate that can customize the
414+
// display type for specific notifications
415+
+ (void)setNotificationDisplayTypeDelegate:(NSObject<OSNotificationDisplayTypeDelegate>*)delegate;
416+
405417
+ (void)addPermissionObserver:(NSObject<OSPermissionObserver>*)observer;
406418
+ (void)removePermissionObserver:(NSObject<OSPermissionObserver>*)observer;
407419

Binary file not shown.

iOS_SDK/OneSignalSDK/Source/OneSignal.m

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

123123
@implementation OneSignal
124124

125-
NSString* const ONESIGNAL_VERSION = @"020905";
125+
NSString* const ONESIGNAL_VERSION = @"021000";
126126
static NSString* mSDKType = @"native";
127127
static BOOL coldStartFromTapOnNotification = NO;
128128

0 commit comments

Comments
 (0)