I currently set up an app which receives push messages from Amazon SNS (which works fine). On the PHP side, I use a normal JSON-similar payload which goes like this:
'aps' => array(
'content-available' => 1,
'alert' => array('body' => 'Text with or without Umlaut (ÄÖÜ)'),
'badge' => 1,
'sound' => 'default'
)
So my issue is: If I send a notification containing Umlauts (Ä,Ö,Ü), the Push Badge in the upper part show the text properly upon receveing this. However, my app doesn't: It receives < null>. I process messages in a normal didreceveive...
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler {
So I logged the received userInfo dictionary as the first thing in this method and here I received the :
NSLog(@"userInfo=%@",userInfo);
alert = {
body = "<null>";
};
badge = 1;
"content-available" = 1;
sound = default;
Without umlauts- it works fine! There aren't any questions regarding this and that's why I would appreciate any input right now...
Thanks in advance!