Skip to content

Commit 39b7c08

Browse files
committed
2.8.0 Release
Release details: • Adds a setting called kOSSettingsKeyPromptBeforeOpeningPushURL which allows developers to control what happens when a user taps a notification with a web URL. If this setting is set to true, the SDK will prompt the user with an alert asking if they want to open the website or not. By default, this setting is false. • Adds ability for postNotification() to preprocess NSDate objects so that developers can add a delay without having to convert to strings first • The SDK will now always convert email auth hash tokens to be lowercase for consistency • syncHashedEmail() is now officially deprecated: added a deprecation notice. • Removed use of private Apple API's which caused problems in rare circumstances. This private API was implemented in order to call deprecated methods for developer convenience. However we have removed this functionality in order to avoid problems with the app review process. The SDK will now print an error to the console if a developer implements these methods. • Fixes an issue that would have caused problems parsing notifications in a new payload format. • Fixed some issues that caused crashes in iOS 7.
1 parent 5ed4ff3 commit 39b7c08

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
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.7.2"
3+
s.version = "2.8.0"
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: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ typedef NS_ENUM(NSInteger, OSNotificationPermission) {
282282
@end
283283

284284

285+
typedef void (^OSWebOpenURLResultBlock)(BOOL shouldOpen);
285286

286287
typedef void (^OSResultSuccessBlock)(NSDictionary* result);
287288
typedef void (^OSFailureBlock)(NSError* error);
@@ -306,6 +307,9 @@ extern NSString * const kOSSettingsKeyInAppAlerts;
306307
/*Enable In-App display of Launch URLs*/
307308
extern NSString * const kOSSettingsKeyInAppLaunchURL;
308309

310+
/*Prompt user yes/no to open URL's from push notifications*/
311+
extern NSString * const kOSSSettingsKeyPromptBeforeOpeningPushURL;
312+
309313
/* iOS10 +
310314
Set notification's in-focus display option.
311315
Value must be an OSNotificationDisplayType enum
@@ -364,7 +368,7 @@ typedef NS_ENUM(NSUInteger, ONE_S_LOG_LEVEL) {
364368
+ (void)deleteTagsWithJsonString:(NSString*)jsonString;
365369
// Optional method that sends us the user's email as an anonymized hash so that we can better target and personalize notifications sent to that user across their devices.
366370
// Sends as MD5 and SHA1 of the provided email
367-
+ (void)syncHashedEmail:(NSString*)email;
371+
+ (void)syncHashedEmail:(NSString*)email __deprecated_msg("Please refer to our new Email methods/functionality such as setEmail(). This method will be removed in a future version of the OneSignal SDK");
368372

369373
// - Subscription and Permissions
370374
+ (void)IdsAvailable:(OSIdsAvailableBlock)idsAvailableBlock __deprecated_msg("Please use getPermissionSubscriptionState or addSubscriptionObserver and addPermissionObserver instead.");
Binary file not shown.

iOS_SDK/OneSignalSDK/Source/OneSignal.m

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

131131
@implementation OneSignal
132132

133-
NSString* const ONESIGNAL_VERSION = @"020702";
133+
NSString* const ONESIGNAL_VERSION = @"020800";
134134
static NSString* mSDKType = @"native";
135135
static BOOL coldStartFromTapOnNotification = NO;
136136

0 commit comments

Comments
 (0)