UIlocalNotification + ibeacon
pistonman33
Membre
Bonjour à tous,
Quelqu'un aurait une idée comment faire pour envoyer une notification quand on est proche d'un ibeacon en particulier?
J'ai déjà réussi à envoyer une notification locale quand on rentre dans une région:
-(void)beaconManager:(ESTBeaconManager *)manager
didEnterRegion:(ESTBeaconRegion *)region
{
UILocalNotification *notification = [[UILocalNotification alloc] init];
notification.alertBody = @Bienvenue dans ma région;
notification.soundName = UILocalNotificationDefaultSoundName;
[[UIApplication sharedApplication] presentLocalNotificationNow:notification];
}
Mais j'ai besoin d'envoyer une notification quand un device est en background proche d'un ibeacon de cette région?
Bien à vous
Connectez-vous ou Inscrivez-vous pour répondre.