Hi All,
Is there any body who faced such Internal Server Error while sending push notification.
This only happens with iPad mini and only from United Kingdom. I know this is something strange. But i never faced this problem till now (I am from india and using latest 2.7 iOS sdk). I have been using this platform services more than 2-3 months.
Here is the log what i got from my client after sending push notification from his iPad mini. It seems push notification doesnot send notification and he got INTERNAL SERVER ERROR as response.
Push Response : {"app42Fault":{"httpErrorCode":500,"appErrorCode":1500,"message":"Internal Server Error","details":"Internal Server Error. Please try again"}}
Edit :
My code to send push notification.
@try
{
NSMutableDictionary *dictionary = [NSMutableDictionary dictionary];
[dictionary setObject:self.txtMessage.text forKey:@"alert"];
[dictionary setObject:@"default" forKey:@"sound"];
NSLog(@"Push User: %@",self.txtUser.text);
NSLog(@"Push Dictionary: %@",dictionary);
PushNotificationService *pushService=[App42API buildPushService];
PushNotification *push = [pushService sendPushMessageToUser:self.txtUser.text withMessageDictionary:dictionary];
NSLog(@"Push Response : %@",push.strResponse);
}
@catch (App42Exception *exception)
{
NSLog(@"Push Exception = %@",exception.reason);
}
@finally
{
}
Here is my client's log for my above code.
Jun 4 11:37:28 iPadMini backboardd[28] <Error>: HID: The 'Rate Controlled' connection 'AppWarpDemo' access to protected services is denied.
Jun 4 11:37:42 iPadMini AppWarpDemo[802] <Warning>: Push User: nilesh
Jun 4 11:37:42 iPadMini AppWarpDemo[802] <Warning>: Push Dictionary: {
alert = hello;
sound = default;
}
Jun 4 11:37:42 iPadMini AppWarpDemo[802] <Warning>: Push Exception = {"app42Fault":{"httpErrorCode":500,"appErrorCode":1500,"message":"Internal Server Error","details":"Internal Server Error. Please try again"}}
It seems its an iOS bug. I googled for this "HID: The 'Rate Controlled' connection <app_name> access to protected services is denied". Please let me know if you find anything regarding this.
Thanks for your help in advance :)