I'm getting this from my server pushnotification and this is in NSDictionary Format.
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))handler {
NSLog(@"Recieved remote notification %@", userInfo);
}
{
aps = {
alert = "{\n \"GCM\":{\n \"data\":{\n \"notificationType\":\"order\",\n \"oid\":\"CRN14333313\",\n \"c\":\"allocated\",\n \"f\":\"253.633333333333\" }\n }\n }";
};
}
I'm trying to convert it to normal NSDictionary without any '\' or '\n'. How do i do that ?
Expected result in this NSDictionary format
{
aps = {
alert = "{
"GCM"={
"data"={
"notificationType"="ons",
"oid"="N14333313",
"c"="allocated",
"f"="253.633333333333",
}
}
}";
};
}