Skip to content

Commit

Permalink
2.9.0 Release
Browse files Browse the repository at this point in the history
• Adds support for iOS 12 features such as Direct To History and Provides App Notification Settings
• See details in release notes
  • Loading branch information
Nightsd01 committed Oct 2, 2018
1 parent ca7f422 commit 40e068a
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 5 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.8.9"
s.version = "2.9.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.8.9"
s.version = "2.9.0"
s.summary = "OneSignal push notification library for mobile apps."
s.homepage = "https://onesignal.com"
s.license = { :type => 'MIT', :file => 'LICENSE' }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ typedef NS_ENUM(NSUInteger, OSNotificationDisplayType) {
Keep the raw value for users that would like to root the push */
@property(readonly)NSDictionary *rawPayload;

/* iOS 10+ : Groups notifications into threads */
@property(readonly)NSString *threadId;

@end

// ## OneSignal OSNotification
Expand Down Expand Up @@ -204,15 +207,20 @@ typedef NS_ENUM(NSInteger, OSNotificationPermission) {
OSNotificationPermissionDenied,

// The application is authorized to post user notifications.
OSNotificationPermissionAuthorized
OSNotificationPermissionAuthorized,

// the application is only authorized to post Provisional notifications (direct to history)
OSNotificationPermissionProvisional
};



// Permission Classes
@interface OSPermissionState : NSObject

@property (readonly, nonatomic) BOOL reachable;
@property (readonly, nonatomic) BOOL hasPrompted;
@property (readonly, nonatomic) BOOL providesAppNotificationSettings;
@property (readonly, nonatomic) OSNotificationPermission status;
- (NSDictionary*)toDictionary;

Expand Down Expand Up @@ -311,13 +319,20 @@ extern NSString * const kOSSettingsKeyInAppLaunchURL;
/*Prompt user yes/no to open URL's from push notifications*/
extern NSString * const kOSSSettingsKeyPromptBeforeOpeningPushURL;

/* iOS10 +
/* iOS 10 +
Set notification's in-focus display option.
Value must be an OSNotificationDisplayType enum
*/
extern NSString * const kOSSettingsKeyInFocusDisplayOption;


/* iOS 12 +
Used to determine if the app is able to present it's
own customized Notification Settings view
*/
extern NSString * const kOSSettingsKeyProvidesAppNotificationSettings;



// ======= OneSignal Class Interface =========
@interface OneSignal : NSObject
Expand Down Expand Up @@ -354,6 +369,12 @@ typedef NS_ENUM(NSUInteger, ONE_S_LOG_LEVEL) {
// Only use if you set kOSSettingsKeyAutoPrompt to false
+ (void)registerForPushNotifications __deprecated_msg("Please use promptForPushNotificationsWithUserResponse instead.");
+ (void)promptForPushNotificationsWithUserResponse:(void(^)(BOOL accepted))completionHandler;
+ (void)promptForPushNotificationsWithUserResponse:(void (^)(BOOL accepted))completionHandler fallbackToSettings:(BOOL)fallback;

// This method opens the iOS Settings app and navigates to the Push Notification Settings
// page for your app specifically
+ (void)presentAppSettings;
+ (void)registerForProvisionalAuthorization:(void(^)(BOOL accepted))completionHandler;

// - Logging
+ (void)setLogLevel:(ONE_S_LOG_LEVEL)logLevel visualLevel:(ONE_S_LOG_LEVEL)visualLogLevel;
Expand Down
Binary file not shown.
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 = @"020809";
NSString* const ONESIGNAL_VERSION = @"020900";
static NSString* mSDKType = @"native";
static BOOL coldStartFromTapOnNotification = NO;

Expand Down

0 comments on commit 40e068a

Please sign in to comment.