Skip to content

Commit

Permalink
2.10.0 release commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jkasten2 committed Apr 24, 2019
1 parent 7fbff43 commit 9271672
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 4 deletions.
2 changes: 1 addition & 1 deletion OneSignal.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "OneSignal"
s.version = "2.9.5"
s.version = "2.10.0"
s.summary = "OneSignal push notification library for mobile apps."
s.homepage = "https://onesignal.com"
s.license = { :type => 'MIT', :file => 'LICENSE' }
Expand Down
2 changes: 1 addition & 1 deletion OneSignalDynamic.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "OneSignalDynamic"
s.version = "2.9.5"
s.version = "2.10.0"
s.summary = "OneSignal push notification library for mobile apps."
s.homepage = "https://onesignal.com"
s.license = { :type => 'MIT', :file => 'LICENSE' }
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ For account issues and support please contact OneSignal support from the [OneSig

#### Supports:
* Swift and Objective-C Projects
* Supports iOS 7 to iOS 11.3
* Supports iOS 7 to iOS 12.2
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,14 @@ typedef NS_ENUM(NSInteger, OSNotificationPermission) {
OSNotificationPermissionProvisional
};

typedef void (^OSNotificationDisplayTypeResponse)(OSNotificationDisplayType displayType);

// Notification Display Type Delegate
// Allows apps to customize per-notification display-type
@protocol OSNotificationDisplayTypeDelegate <NSObject>
- (void)willPresentInFocusNotificationWithPayload:(OSNotificationPayload *)payload
withCompletion:(OSNotificationDisplayTypeResponse)completion;
@end


// Permission Classes
Expand Down Expand Up @@ -402,6 +410,10 @@ typedef NS_ENUM(NSUInteger, ONE_S_LOG_LEVEL) {

+ (OSPermissionSubscriptionState*)getPermissionSubscriptionState;

// When the app is in-focus, this allows you to add a delegate that can customize the
// display type for specific notifications
+ (void)setNotificationDisplayTypeDelegate:(NSObject<OSNotificationDisplayTypeDelegate>*)delegate;

+ (void)addPermissionObserver:(NSObject<OSPermissionObserver>*)observer;
+ (void)removePermissionObserver:(NSObject<OSPermissionObserver>*)observer;

Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,14 @@ typedef NS_ENUM(NSInteger, OSNotificationPermission) {
OSNotificationPermissionProvisional
};

typedef void (^OSNotificationDisplayTypeResponse)(OSNotificationDisplayType displayType);

// Notification Display Type Delegate
// Allows apps to customize per-notification display-type
@protocol OSNotificationDisplayTypeDelegate <NSObject>
- (void)willPresentInFocusNotificationWithPayload:(OSNotificationPayload *)payload
withCompletion:(OSNotificationDisplayTypeResponse)completion;
@end


// Permission Classes
Expand Down Expand Up @@ -402,6 +410,10 @@ typedef NS_ENUM(NSUInteger, ONE_S_LOG_LEVEL) {

+ (OSPermissionSubscriptionState*)getPermissionSubscriptionState;

// When the app is in-focus, this allows you to add a delegate that can customize the
// display type for specific notifications
+ (void)setNotificationDisplayTypeDelegate:(NSObject<OSNotificationDisplayTypeDelegate>*)delegate;

+ (void)addPermissionObserver:(NSObject<OSPermissionObserver>*)observer;
+ (void)removePermissionObserver:(NSObject<OSPermissionObserver>*)observer;

Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion iOS_SDK/OneSignalSDK/Source/OneSignal.m
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ @implementation OSPendingCallbacks

@implementation OneSignal

NSString* const ONESIGNAL_VERSION = @"020905";
NSString* const ONESIGNAL_VERSION = @"021000";
static NSString* mSDKType = @"native";
static BOOL coldStartFromTapOnNotification = NO;

Expand Down

0 comments on commit 9271672

Please sign in to comment.