0 Replies
      Latest reply on Jul 15, 2016 6:53 AM by pavithra001
      pavithra001 Level 1 Level 1 (0 points)

        I am building an application which should show local notification even when app is killed. If the app is in background it's working fine. But when app is killed local notification does not show up.


        Am calling timer in the time interval of 20 secs in didUpdateLocations method.


        code Snippet

        [self.locationManager startUpdatingLocation];


        - (void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations


          CLLocation *newLocation = [locations lastObject];


          self.curlatitude = [NSString stringWithFormat:@"%f", newLocation.coordinate.latitude];

          self.curlongitude = [NSString stringWithFormat:@"%f", newLocation.coordinate.longitude];


        self.GlobalTimer=[NSTimer scheduledTimerWithTimeInterval:60








        timerDidFire has the local notification call


        Could you please confirm, whether we can show the local notifications when the app is killed/suspended?

        If Yes, please suggest the work around.