Skip to content

Commit 8a43078

Browse files
committed
Updated iOS native SDK and version number
1 parent 30e4e9a commit 8a43078

File tree

5 files changed

+17
-5
lines changed

5 files changed

+17
-5
lines changed

examples/CocoapodsDemo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
"expokit": "1.7.1",
1414
"react": "16.3.1",
1515
"react-native": "https://github.com/expo/react-native/archive/sdk-30.0.0.tar.gz",
16-
"react-native-onesignal": "3.2.12"
16+
"react-native-onesignal": "3.2.13"
1717
}
1818
}

examples/RNOneSignal/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"dependencies": {
1010
"react": "16.8.3",
1111
"react-native": "0.59.5",
12-
"react-native-onesignal": "^3.2.12"
12+
"react-native-onesignal": "^3.2.13"
1313
},
1414
"devDependencies": {
1515
"@babel/core": "^7.4.4",

ios/OneSignal.h

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,14 @@ typedef NS_ENUM(NSInteger, OSNotificationPermission) {
213213
OSNotificationPermissionProvisional
214214
};
215215

216+
typedef void (^OSNotificationDisplayTypeResponse)(OSNotificationDisplayType displayType);
217+
218+
// Notification Display Type Delegate
219+
// Allows apps to customize per-notification display-type
220+
@protocol OSNotificationDisplayTypeDelegate <NSObject>
221+
- (void)willPresentInFocusNotificationWithPayload:(OSNotificationPayload *)payload
222+
withCompletion:(OSNotificationDisplayTypeResponse)completion;
223+
@end
216224

217225

218226
// Permission Classes
@@ -402,6 +410,10 @@ typedef NS_ENUM(NSUInteger, ONE_S_LOG_LEVEL) {
402410

403411
+ (OSPermissionSubscriptionState*)getPermissionSubscriptionState;
404412

413+
// When the app is in-focus, this allows you to add a delegate that can customize the
414+
// display type for specific notifications
415+
+ (void)setNotificationDisplayTypeDelegate:(NSObject<OSNotificationDisplayTypeDelegate>*)delegate;
416+
405417
+ (void)addPermissionObserver:(NSObject<OSPermissionObserver>*)observer;
406418
+ (void)removePermissionObserver:(NSObject<OSPermissionObserver>*)observer;
407419

@@ -462,4 +474,4 @@ typedef void (^OSEmailSuccessBlock)();
462474

463475
@end
464476

465-
#pragma clang diagnostic pop
477+
#pragma clang diagnostic pop

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-onesignal",
3-
"version": "3.2.12",
3+
"version": "3.2.13",
44
"description": "React Native OneSignal Component",
55
"main": "index",
66
"scripts": {

react-native-onesignal.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ Pod::Spec.new do |s|
1414
s.source_files = 'ios/RCTOneSignal/*.{h,m}'
1515

1616
s.dependency 'React'
17-
s.dependency 'OneSignal', '2.9.4'
17+
s.dependency 'OneSignal', '2.10.0'
1818

1919
end

0 commit comments

Comments
 (0)