title: Waking up app from background iOS
body: <p>I'm using silent notifications to wake up my app from background. When I close my app everything works fine, but when I terminated it(swipe up) it stops working. I can feel(vibration) that silent notification has been delivered but my app doesn't proces it. I made an local notification that should fire when silent notifications has arrived. In my .plist I have Remote notifications and Background fetch enabled. In AppDelegate.m I have this:</p>
  
  <pre><code>- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler
  
  {
  
      UILocalNotification *notification_ = [[UILocalNotification alloc]init];
  
      notification_.alertBody = [NSString stringWithFormat:@"Psst!"];
  
      notification_.soundName = UILocalNotificationDefaultSoundName;
  
      [notification_ setFireDate:[NSDate dateWithTimeIntervalSinceNow:2]];
  
      [notification_ setTimeZone:[NSTimeZone defaultTimeZone]];
  
      [application setScheduledLocalNotifications:[NSArray arrayWithObject:notification_]];
  
  }
  </code></pre>