diff --git a/OneSignal.podspec b/OneSignal.podspec index 960cb3e38..3e7f5635b 100755 --- a/OneSignal.podspec +++ b/OneSignal.podspec @@ -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' } diff --git a/OneSignalDynamic.podspec b/OneSignalDynamic.podspec index 99b42af06..98ea37912 100644 --- a/OneSignalDynamic.podspec +++ b/OneSignalDynamic.podspec @@ -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' } diff --git a/README.md b/README.md index c949f22a8..6b11db6c9 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/iOS_SDK/OneSignalSDK/Framework/Dynamic/OneSignal.framework/Versions/A/Headers/OneSignal.h b/iOS_SDK/OneSignalSDK/Framework/Dynamic/OneSignal.framework/Versions/A/Headers/OneSignal.h index 4272344f2..fa770de7b 100755 --- a/iOS_SDK/OneSignalSDK/Framework/Dynamic/OneSignal.framework/Versions/A/Headers/OneSignal.h +++ b/iOS_SDK/OneSignalSDK/Framework/Dynamic/OneSignal.framework/Versions/A/Headers/OneSignal.h @@ -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 +- (void)willPresentInFocusNotificationWithPayload:(OSNotificationPayload *)payload + withCompletion:(OSNotificationDisplayTypeResponse)completion; +@end // Permission Classes @@ -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*)delegate; + + (void)addPermissionObserver:(NSObject*)observer; + (void)removePermissionObserver:(NSObject*)observer; diff --git a/iOS_SDK/OneSignalSDK/Framework/Dynamic/OneSignal.framework/Versions/A/OneSignal b/iOS_SDK/OneSignalSDK/Framework/Dynamic/OneSignal.framework/Versions/A/OneSignal index 3852d4577..10c6a44d7 100755 Binary files a/iOS_SDK/OneSignalSDK/Framework/Dynamic/OneSignal.framework/Versions/A/OneSignal and b/iOS_SDK/OneSignalSDK/Framework/Dynamic/OneSignal.framework/Versions/A/OneSignal differ diff --git a/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Versions/A/Headers/OneSignal.h b/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Versions/A/Headers/OneSignal.h index 4272344f2..fa770de7b 100755 --- a/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Versions/A/Headers/OneSignal.h +++ b/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Versions/A/Headers/OneSignal.h @@ -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 +- (void)willPresentInFocusNotificationWithPayload:(OSNotificationPayload *)payload + withCompletion:(OSNotificationDisplayTypeResponse)completion; +@end // Permission Classes @@ -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*)delegate; + + (void)addPermissionObserver:(NSObject*)observer; + (void)removePermissionObserver:(NSObject*)observer; diff --git a/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Versions/A/OneSignal b/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Versions/A/OneSignal index 598b02902..2295a5fd4 100644 Binary files a/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Versions/A/OneSignal and b/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework/Versions/A/OneSignal differ diff --git a/iOS_SDK/OneSignalSDK/Source/OneSignal.m b/iOS_SDK/OneSignalSDK/Source/OneSignal.m index 9e64542ad..751162e70 100755 --- a/iOS_SDK/OneSignalSDK/Source/OneSignal.m +++ b/iOS_SDK/OneSignalSDK/Source/OneSignal.m @@ -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;