Hi sir,
I need to send Chinese character notifications on my IOS device. I've tried the following block of code:
@try
{
NSMutableDictionary *pushDictionary = [NSMutableDictionary dictionary];
[pushDictionary setObject:@"你好" forKey:@"alert"];
[pushDictionary setObject:@"default" forKey:@"sound"];
[pushDictionary setObject:@"2" forKey:@"badge"];
PushNotificationService *pushObj=[App42API buildPushService];
NSMutableDictionary *dict = [NSMutableDictionary dictionaryWithObjectsAndKeys:@"true", @"dataEncoding", nil];
[pushObj setOtherMetaHeaders:dict];
[pushObj sendPushMessageToChannel:pushChannel withMessageDictionary:pushDictionary];
// [pushObj release];
}
@catch (App42Exception *exception)
{
NSLog(@"Reason = %@",exception.reason);
}
@finally
{
}
But still give me this error:
and it does not work. It still gives me this error message: {"app42Fault":{"httpErrorCode":401,"appErrorCode":1401,"message":"UnAuthorized Access","details":"Client is not authorized"}}
Note: If the "alert" is in English, it can be sent out without problem.
Kindly please advise, many thanks!
Daryl