I modified the alias sample code from:
[request addRequestHeader: @"Content-Type" value: @"application/json"];
[request appendPostData:[[NSString stringWithFormat: @"{\"alias\": \"%@\"}", self.deviceAlias]
dataUsingEncoding:NSUTF8StringEncoding]];
to:
[request addRequestHeader: @"Content-Type" value: @"application/json"];
[request appendPostData:[[NSString stringWithFormat: @"{\"tags\": \"%@\"}", offsetStr]
dataUsingEncoding:NSUTF8StringEncoding]];
offsetStr is a string containing a Timezone offset (which can be any number between -12 and 12).
For some reason, Urban Airship is making each character of the string into its own tag.
I've tried to substitute the -
for a string neg
with the same results.
What's wrong?