4
내 앱에서 백그라운드 새로 고침 설정이 사용 설정되어 있는지 확인하고 있습니다. 사용하도록 설정되지 않은 경우 해당 앱이 설정 옵션을 열고 사용자를 백그라운드 새로 고침 옵션으로 가져 오길 원합니다. 프로그래밍 방식으로 할 수 있습니까 ???iOS에서 배경으로 새로 고침 설정 iOS에서 프로그래밍 방식으로
내 앱에서 백그라운드 새로 고침 설정이 사용 설정되어 있는지 확인하고 있습니다. 사용하도록 설정되지 않은 경우 해당 앱이 설정 옵션을 열고 사용자를 백그라운드 새로 고침 옵션으로 가져 오길 원합니다. 프로그래밍 방식으로 할 수 있습니까 ???iOS에서 배경으로 새로 고침 설정 iOS에서 프로그래밍 방식으로
그런 식으로하고 싶으신가요?
if ([[UIApplication sharedApplication] backgroundRefreshStatus] == UIBackgroundRefreshStatusAvailable) {
NSLog(@"Background updates are available for the app.");
}else if([[UIApplication sharedApplication] backgroundRefreshStatus] == UIBackgroundRefreshStatusDenied)
{
NSLog(@"The user explicitly disabled background behavior for this app or for the whole system.");
}else if([[UIApplication sharedApplication] backgroundRefreshStatus] == UIBackgroundRefreshStatusRestricted)
{
NSLog(@"Background updates are unavailable and the user cannot enable them again. For example, this status can occur when parental controls are in effect for the current user.");
}