Skip to content

Commit

Permalink
Fixed REST method call used by postNotification
Browse files Browse the repository at this point in the history
- Issue was introduced in 2.3.1
  • Loading branch information
jkasten2 committed Dec 6, 2016
1 parent 256fd46 commit 7b81e62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified iOS_SDK/Framework/OneSignal.framework/Versions/A/OneSignal
Binary file not shown.
4 changes: 2 additions & 2 deletions iOS_SDK/OneSignal/OneSignal.m
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@

@implementation OneSignal

NSString* const ONESIGNAL_VERSION = @"020301";
NSString* const ONESIGNAL_VERSION = @"020302";
static NSString* mSDKType = @"native";
static BOOL coldStartFromTapOnNotification = NO;

Expand Down Expand Up @@ -473,7 +473,7 @@ + (void)postNotification:(NSDictionary*)jsonData {
}

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

NSMutableDictionary* dataDic = [[NSMutableDictionary alloc] initWithDictionary:jsonData];
dataDic[@"app_id"] = app_id;
Expand Down

0 comments on commit 7b81e62

Please sign in to comment.