Skip to content

Commit

Permalink
3.2.8 Release
Browse files Browse the repository at this point in the history
• Updates iOS and Android native SDK's
  • Loading branch information
Nightsd01 committed Nov 3, 2018
1 parent ec9255b commit b05e7be
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 6 deletions.
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile "com.facebook.react:react-native:${safeExtGet('reactNativeVersion', '+')}"

compile('com.onesignal:OneSignal:3.10.1') {
compile('com.onesignal:OneSignal:3.10.3') {
// Exclude com.android.support(Android Support library) as the version range starts at 26.0.0
// This is due to compileSdkVersion defaulting to 23 which cant' be lower than the support library version
// And the fact that the default root project is missing the Google Maven repo required to pull down 26.0.0+
Expand Down
2 changes: 1 addition & 1 deletion examples/RNOneSignal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dependencies": {
"react": "16.3.1",
"react-native": "0.55.4",
"react-native-onesignal": "3.2.7",
"react-native-onesignal": "3.2.8",
"eslint": "^4.0.0"
}
}
25 changes: 23 additions & 2 deletions ios/OneSignal.h
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 modified ios/libOneSignal.a
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-onesignal",
"version": "3.2.7",
"version": "3.2.8",
"description": "React Native OneSignal Component",
"main": "index",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion react-native-onesignal.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ Pod::Spec.new do |s|
s.source_files = 'ios/RCTOneSignal/*.{h,m}'

s.dependency 'React'
s.dependency 'OneSignal', '2.8.8'
s.dependency 'OneSignal', '2.9.3'

end

0 comments on commit b05e7be

Please sign in to comment.