Skip to content

Commit

Permalink
3.4.2 Release commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jkasten2 committed Oct 1, 2019
1 parent b30818e commit 8343b82
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion examples/RNOneSignal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"dependencies": {
"react": "16.8.6",
"react-native": "0.60.5",
"react-native-onesignal": "^3.4.1"
"react-native-onesignal": "^3.4.2"
},
"devDependencies": {
"@babel/core": "^7.5.5",
Expand Down
11 changes: 5 additions & 6 deletions ios/OneSignal.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ typedef NS_ENUM(NSUInteger, OSNotificationDisplayType) {
@property(readonly)NSString* subtitle;
@property(readonly)NSString* body;

/* Web address to launch within the app via a UIWebView */
/* Web address to launch within the app via a WKWebView */
@property(readonly)NSString* launchURL;

/* Additional key value properties set within the payload */
Expand All @@ -170,7 +170,7 @@ typedef NS_ENUM(NSUInteger, OSNotificationDisplayType) {
/* Parses an APS push payload into a OSNotificationPayload object.
Useful to call from your NotificationServiceExtension when the
didReceiveNotificationRequest:withContentHandler: method fires. */
+(instancetype)parseWithApns:(nonnull NSDictionary*)message;
+ (instancetype)parseWithApns:(nonnull NSDictionary*)message;

@end

Expand Down Expand Up @@ -230,9 +230,6 @@ typedef NS_ENUM(NSInteger, OSNotificationPermission) {
OSNotificationPermissionProvisional
};

typedef void (^OSNotificationDisplayTypeResponse)(OSNotificationDisplayType displayType);


// Permission Classes
@interface OSPermissionState : NSObject

Expand Down Expand Up @@ -323,7 +320,7 @@ typedef void (^OSHandleNotificationReceivedBlock)(OSNotification* notification);
/*Block for handling a user reaction to a notification*/
typedef void (^OSHandleNotificationActionBlock)(OSNotificationOpenedResult * result);

/*Block for hanlding user click on an in app message*/
/*Block for handling user click on an in app message*/
typedef void (^OSHandleInAppMessageActionClickBlock)(OSInAppMessageAction* action);

/*Dictionary of keys to pass alongside the init settings*/
Expand Down Expand Up @@ -445,6 +442,7 @@ typedef NS_ENUM(NSUInteger, ONE_S_LOG_LEVEL) {
// - Request and track user's location
+ (void)promptLocation;
+ (void)setLocationShared:(BOOL)enable;
+ (BOOL)isLocationShared;


// Only used for wrapping SDKs, such as Unity, Cordova, Xamarin, etc.
Expand Down Expand Up @@ -488,6 +486,7 @@ typedef void (^OSEmailSuccessBlock)();
+ (void)removeTriggersForKeys:(NSArray<NSString *> * _Nonnull)keys;
+ (NSDictionary<NSString *, id> * _Nonnull)getTriggers;
+ (id _Nullable)getTriggerValueForKey:(NSString * _Nonnull)key;

+ (void)setExternalUserId:(NSString * _Nonnull)externalId;
+ (void)removeExternalUserId;

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.4.1",
"version": "3.4.2",
"description": "React Native OneSignal SDK",
"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 @@ -22,5 +22,5 @@ Pod::Spec.new do |s|
# pod 'React', :path => '../node_modules/react-native/'

# The Native OneSignal-iOS-SDK from cocoapods.
s.dependency 'OneSignal', '2.11.0'
s.dependency 'OneSignal', '2.11.2'
end

0 comments on commit 8343b82

Please sign in to comment.