Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

do not auto-connect user to device - there may be no user #5

Merged
merged 1 commit into from

2 participants

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 8 deletions.
  1. +1 −8 UGAPI/UGClient.m
View
9 UGAPI/UGClient.m
@@ -1108,14 +1108,7 @@ - (UGClientResponse *)setDevicePushToken:(NSData *)newDeviceToken forNotifier:(N
NSString *notifierKey = [notifier stringByAppendingString: @".notifier.id"];
[entity setObject: tokenString forKey: notifierKey];
- UGClientResponse *response = [self updateEntity: deviceId entity: entity];
-
- if (response.transactionState == kUGClientResponseSuccess) {
- // connect device to my user
- response = [self connectEntities: @"users" connectorID: @"me" type: @"devices" connecteeID: deviceId];
- }
-
- return response;
+ return [self updateEntity: deviceId entity: entity];
}
- (UGClientResponse *)pushAlert:(NSString *)message
Something went wrong with that request. Please try again.