Meine App verwendet Geofencing und sendet eine Benachrichtigung.Warum sind meine lokalen Benachrichtigungen standardmäßig nicht in iOS 7 aktiviert?
Standardmäßig sind Sounds in den Einstellungen - Benachrichtigungen für die App deaktiviert.
iOS 7, um genau zu sein.
Kann jemand das beheben? Hier
ist der Code dafür verantwortlich:
UILocalNotification *localNotif = [[UILocalNotification alloc] init];
localNotif.fireDate = [NSDate dateWithTimeInterval:5 sinceDate:[NSDate date]];
localNotif.timeZone = [NSTimeZone defaultTimeZone];
localNotif.alertBody = [NSString stringWithFormat:@"You are near %@. Don't forget to check in!",place.name];
localNotif.soundName = UILocalNotificationDefaultSoundName;
localNotif.applicationIconBadgeNumber = 0;
[[UIApplication sharedApplication] scheduleLocalNotification:localNotif];
Hallo ich habe eine Geo-Fencing-Anforderung bin neu zu IOS ca Sie teilen Sie bitte Ihren Beispielcode für Geo-Fechten in unserer Anwendung hinzufügen – sabir