私のアプリはジオフェンシングを使用し、通知を送信します。
デフォルトでは、アプリの [設定] - [通知] でサウンドがオフになっています。
正確には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];