Q:

App inactive state notification didn't arrive?

When my app is active state i shown the notification using alertview ,When my app is inactive state i like to show the notification .
This is my response :
aps =     {
        alert =         {
            calltype = order;
            id = 194;
            info = "Dear Customer Thank you for contacting SR number for your request is SACHA4 We will contact you shortly with our service professional details.";
        };
        sound = default;
    };

I am splitting Those values like this:
NSDictionary *aps=[userInfo objectForKey:@"aps"];
    NSDictionary *alertdic=[aps objectForKey:@"alert"];

INACTIVE STATE CODING:
if (application.applicationState == UIApplicationStateInactive)
    {

        query=[NSString stringWithFormat:@"insert into job ('id','message','calltype')values('%ld','%@','%@')",[[alertdic objectForKey:@"id"] integerValue],[alertdic objectForKey:@"info"],[alertdic objectForKey:@"calltype"]];

        UILocalNotification *notification = [[UILocalNotification alloc] init];
        notification.alertBody = [alertdic objectForKey:@"message"];
        notification.applicationIconBadgeNumber = 0;

        [[UIApplication sharedApplication] scheduleLocalNotification:notification];

    }

But notification didn't Arrive,but notification sound is arrived. i need your help friends.

A:

my server response this is our previous response :
aps =     {
        alert =         {
            calltype = order;
            id = 194;
            info = "Dear Customer Thank you for contacting SR number for your request is SACHA4 We will contact you shortly with our service professional details.";
        };
        sound = default;
    }

;
Now we have changed this to like this 
aps =     {
        alert = "Dear Customer Thank you for contacting SR number for your request is SACHAS We will contact you shortly with our service professional details.";
        calltype = order;
        id = 194;
        sound = default;
    };

