Local Notification When didEnterRegion?
问题 I have the following code which work perfect when app terminated. -(void)beaconManager:(id)manager didEnterRegion:(CLBeaconRegion *)region{ UILocalNotification *notification = [UILocalNotification new]; notification.alertBody = @"TEST NOTIFICATION"; notification.soundName = UILocalNotificationDefaultSoundName; [[UIApplication sharedApplication] presentLocalNotificationNow:notification]; } But When I do the following: -(void) createTestNotification { UILocalNotification *notification =