Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updated the non deprecated call to enable push notifications

  • Loading branch information...
commit 164251cb30f9294ebff6229df337b21330f8b3db 1 parent 57a2660
@funkyboy funkyboy authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 BaasBox-iOS-SDK/BAAClient.m
View
4 BaasBox-iOS-SDK/BAAClient.m
@@ -997,8 +997,6 @@ -(void)deletePath:(NSString *)path
}
-
-
#pragma mark - Push notifications
- (void) askToEnablePushNotifications {
@@ -1017,7 +1015,7 @@ - (void) enablePushNotification:(NSData *)tokenData completion:(BAABooleanResult
self.currentUser.pushNotificationToken = [self convertTokenToDeviceID:tokenData];
- NSString *path = [NSString stringWithFormat:@"push/device/%@/%@", @"ios", self.currentUser.pushNotificationToken];
+ NSString *path = [NSString stringWithFormat:@"push/enable/%@/%@", @"ios", self.currentUser.pushNotificationToken];
[self putPath:path
parameters:nil
Please sign in to comment.
Something went wrong with that request. Please try again.