I have tried silent Apple push notification in ios 7 using following code. The Push notification received when application is in foreground or in background. Then I remove application from background by swiping the application from background apps. After that If I send a Push notification from my server, it sent to APN properly, but not delivered to iPhone.So Apple push notification in ios 7 delivers silent push notification only application running in backgroud? If user remove application from background will it receive notification or not?
-(void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler
{
NSString *receivedMessage = [[userInfo objectForKey:@"acme1"] objectForKey:@"mydata"];
NSLog(@"fetchCompletionHandler receivedMessage -> %@",receivedMessage);
completionHandler(UIBackgroundFetchResultNewData);
}