私のアプリはジオフェンシングを使用し、通知を送信します。iOS 7でローカル通知がデフォルトでオンになっていないのはなぜですか?
デフォルトでは、サウンドはアプリの[設定 - 通知]でオフになっています。
正確にはiOS 7です。
誰でもこれを解決する方法を知っていますか?
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];
私は地理的なフェンシングの要件を持っていますIOSの新しいcaを私たちのアプリケーションでジオフェンシングを追加するためのサンプルコードを共有してください – sabir