Skip to content

Instantly share code, notes, and snippets.

@key
Created November 28, 2013 06:02
Show Gist options
  • Save key/7687885 to your computer and use it in GitHub Desktop.
Save key/7687885 to your computer and use it in GitHub Desktop.
Background App Refreshについて ref: http://qiita.com/key/items/3cc7f631393149bac567
UIApplication *app = [UIApplication sharedApplication];
if (app.backgroundRefreshStatus == UIBackgroundRefreshStatusAvailable) {
NSLog(@"バックグラウンド更新が可能");
} else if(app.backgroundRefreshStatus == UIBackgroundRefreshStatusDenied) {
NSLog(@"バックグラウンド更新はユーザによって禁止されている。");
} else if(app.backgroundRefreshStatus == UIBackgroundRefreshStatusRestricted) {
NSLog(@"デバイス設定により無効にされている(ユーザが有効にすることは出来ない)。");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment