Urban Airship Tags issue
Posted
by Moshe
on Stack Overflow
See other posts from Stack Overflow
or by Moshe
Published on 2010-04-11T12:19:43Z
Indexed on
2010/04/11
12:23 UTC
Read the original article
Hit count: 201
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?
© Stack Overflow or respective owner