Skip to content

Commit b05e7be

Browse files
committed
3.2.8 Release
• Updates iOS and Android native SDK's
1 parent ec9255b commit b05e7be

File tree

6 files changed

+27
-6
lines changed

6 files changed

+27
-6
lines changed

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ dependencies {
2222
compile fileTree(include: ['*.jar'], dir: 'libs')
2323
compile "com.facebook.react:react-native:${safeExtGet('reactNativeVersion', '+')}"
2424

25-
compile('com.onesignal:OneSignal:3.10.1') {
25+
compile('com.onesignal:OneSignal:3.10.3') {
2626
// Exclude com.android.support(Android Support library) as the version range starts at 26.0.0
2727
// This is due to compileSdkVersion defaulting to 23 which cant' be lower than the support library version
2828
// And the fact that the default root project is missing the Google Maven repo required to pull down 26.0.0+

examples/RNOneSignal/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"dependencies": {
99
"react": "16.3.1",
1010
"react-native": "0.55.4",
11-
"react-native-onesignal": "3.2.7",
11+
"react-native-onesignal": "3.2.8",
1212
"eslint": "^4.0.0"
1313
}
1414
}

ios/OneSignal.h

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@ typedef NS_ENUM(NSUInteger, OSNotificationDisplayType) {
149149
Keep the raw value for users that would like to root the push */
150150
@property(readonly)NSDictionary *rawPayload;
151151

152+
/* iOS 10+ : Groups notifications into threads */
153+
@property(readonly)NSString *threadId;
154+
152155
@end
153156

154157
// ## OneSignal OSNotification
@@ -204,15 +207,20 @@ typedef NS_ENUM(NSInteger, OSNotificationPermission) {
204207
OSNotificationPermissionDenied,
205208

206209
// The application is authorized to post user notifications.
207-
OSNotificationPermissionAuthorized
210+
OSNotificationPermissionAuthorized,
211+
212+
// the application is only authorized to post Provisional notifications (direct to history)
213+
OSNotificationPermissionProvisional
208214
};
209215

210216

211217

212218
// Permission Classes
213219
@interface OSPermissionState : NSObject
214220

221+
@property (readonly, nonatomic) BOOL reachable;
215222
@property (readonly, nonatomic) BOOL hasPrompted;
223+
@property (readonly, nonatomic) BOOL providesAppNotificationSettings;
216224
@property (readonly, nonatomic) OSNotificationPermission status;
217225
- (NSDictionary*)toDictionary;
218226

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

314-
/* iOS10 +
322+
/* iOS 10 +
315323
Set notification's in-focus display option.
316324
Value must be an OSNotificationDisplayType enum
317325
*/
318326
extern NSString * const kOSSettingsKeyInFocusDisplayOption;
319327

320328

329+
/* iOS 12 +
330+
Used to determine if the app is able to present it's
331+
own customized Notification Settings view
332+
*/
333+
extern NSString * const kOSSettingsKeyProvidesAppNotificationSettings;
334+
335+
321336

322337
// ======= OneSignal Class Interface =========
323338
@interface OneSignal : NSObject
@@ -354,6 +369,12 @@ typedef NS_ENUM(NSUInteger, ONE_S_LOG_LEVEL) {
354369
// Only use if you set kOSSettingsKeyAutoPrompt to false
355370
+ (void)registerForPushNotifications __deprecated_msg("Please use promptForPushNotificationsWithUserResponse instead.");
356371
+ (void)promptForPushNotificationsWithUserResponse:(void(^)(BOOL accepted))completionHandler;
372+
+ (void)promptForPushNotificationsWithUserResponse:(void (^)(BOOL accepted))completionHandler fallbackToSettings:(BOOL)fallback;
373+
374+
// This method opens the iOS Settings app and navigates to the Push Notification Settings
375+
// page for your app specifically
376+
+ (void)presentAppSettings;
377+
+ (void)registerForProvisionalAuthorization:(void(^)(BOOL accepted))completionHandler;
357378

358379
// - Logging
359380
+ (void)setLogLevel:(ONE_S_LOG_LEVEL)logLevel visualLevel:(ONE_S_LOG_LEVEL)visualLogLevel;

ios/libOneSignal.a

709 KB
Binary file not shown.

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.7",
3+
"version": "3.2.8",
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.8.8'
17+
s.dependency 'OneSignal', '2.9.3'
1818

1919
end

0 commit comments

Comments
 (0)