Skip to content

Commit 67a7013

Browse files
committed
2.2.1 version release
1 parent 54fd7b4 commit 67a7013

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-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.2.0"
3+
s.version = "2.2.1"
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/Framework/OneSignal.framework/Versions/A/Headers/OneSignal.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ typedef OSNotificationDisplayType OSInFocusDisplayOption;
148148
Set to false when app is in focus and in-app alerts are disabled, or the remote notification is silent. */
149149
@property(readonly, getter=wasShown)BOOL shown;
150150

151+
/* Set to true if the app was in focus when the notification */
152+
@property(readonly, getter=wasAppInFocus)BOOL isAppInFocus;
153+
151154
/* Set to true when the received notification is silent
152155
Silent means there is no alert, sound, or badge payload in the aps dictionary
153156
requires remote-notification within UIBackgroundModes array of the Info.plist */
177 KB
Binary file not shown.

iOS_SDK/OneSignal/OneSignal.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@
7676
NSString * const kOSSettingsKeyInFocusDisplayOption = @"kOSSettingsKeyInFocusDisplayOption";
7777

7878
@implementation OneSignal
79-
80-
NSString* const ONESIGNAL_VERSION = @"020200";
79+
80+
NSString* const ONESIGNAL_VERSION = @"020201";
8181
static NSString* mSDKType = @"native";
8282
static BOOL coldStartFromTapOnNotification = NO;
8383
static BOOL registeredWithApple = NO; //Has attempted to register for push notifications with Apple.

0 commit comments

Comments
 (0)