I am from Android background, now working in cross platform mobile application. I don't have any knowledge in iOS. In my application, I need to customize the push notification in displayed in the notification bar. In Android I achieve this. Can any one help me in iOS?
This is my json data :
{
"Test1":"Value 1",
"Test2":"Problem:[{"a":"b"},{"c":"d"}]"
}
Output should be : Value 1 --> b ,d
What I have tried
- (void)handleBackgroundNotification:(NSDictionary *)notification
{
NSMutableString *alert = [NSMutableString stringWithString:@""];
if ([notification objectForKey:@"Test1"]){
[alert appendString:(NSString *)[notification objectForKey:@"Test1"]];
}
}
I dont know if this is correct.