Skip to content

Commit 7b81e62

Browse files
committed
Fixed REST method call used by postNotification
- Issue was introduced in 2.3.1
1 parent 256fd46 commit 7b81e62

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
0 Bytes
Binary file not shown.

iOS_SDK/OneSignal/OneSignal.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181

8282
@implementation OneSignal
8383

84-
NSString* const ONESIGNAL_VERSION = @"020301";
84+
NSString* const ONESIGNAL_VERSION = @"020302";
8585
static NSString* mSDKType = @"native";
8686
static BOOL coldStartFromTapOnNotification = NO;
8787

@@ -473,7 +473,7 @@ + (void)postNotification:(NSDictionary*)jsonData {
473473
}
474474

475475
+ (void)postNotification:(NSDictionary*)jsonData onSuccess:(OSResultSuccessBlock)successBlock onFailure:(OSFailureBlock)failureBlock {
476-
NSMutableURLRequest* request = [httpClient requestWithMethod:@"GET" path:@"notifications"];
476+
NSMutableURLRequest* request = [httpClient requestWithMethod:@"POST" path:@"notifications"];
477477

478478
NSMutableDictionary* dataDic = [[NSMutableDictionary alloc] initWithDictionary:jsonData];
479479
dataDic[@"app_id"] = app_id;

0 commit comments

Comments
 (0)