{"action":"created","issue":{"url":"https://api.github.com/repos/floriankrueger/SOXAppDelegate/issues/2","labels_url":"https://api.github.com/repos/floriankrueger/SOXAppDelegate/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/floriankrueger/SOXAppDelegate/issues/2/comments","events_url":"https://api.github.com/repos/floriankrueger/SOXAppDelegate/issues/2/events","html_url":"https://github.com/floriankrueger/SOXAppDelegate/issues/2","id":66378122,"number":2,"title":"Warning messages when using SOXAppDelegate","user":{"login":"fatuhoku","id":430233,"avatar_url":"https://avatars.githubusercontent.com/u/430233?v=3","gravatar_id":"","url":"https://api.github.com/users/fatuhoku","html_url":"https://github.com/fatuhoku","followers_url":"https://api.github.com/users/fatuhoku/followers","following_url":"https://api.github.com/users/fatuhoku/following{/other_user}","gists_url":"https://api.github.com/users/fatuhoku/gists{/gist_id}","starred_url":"https://api.github.com/users/fatuhoku/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fatuhoku/subscriptions","organizations_url":"https://api.github.com/users/fatuhoku/orgs","repos_url":"https://api.github.com/users/fatuhoku/repos","events_url":"https://api.github.com/users/fatuhoku/events{/privacy}","received_events_url":"https://api.github.com/users/fatuhoku/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-04T23:18:28Z","updated_at":"2015-04-07T05:30:57Z","closed_at":null,"body":"Thanks for this project. The ability to modularize `UIAppDelegate` was sorely needed and this project addresses that need well. =]\r\n\r\nI followed the five-steps instructions on the README, and it looks like iOS isn't particularly happy about implementations of at least a couple of the methods:\r\n\r\n```objc\r\nYou've implemented -[<UIApplicationDelegate> application:performFetchWithCompletionHandler:], but you still need to add \"fetch\" to the list of your supported UIBackgroundModes in your Info.plist.\r\n2015-04-05 00:17:32.997 RecipeReview[38466:560624] You've implemented -[<UIApplicationDelegate> application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add \"remote-notification\" to the list of your supported UIBackgroundModes in your Info.plist.\r\n2015-04-05 00:17:32.999 RecipeReview[38466:560624] Warning: Unable to create restoration in progress marker file\r\n```\r\n\r\nI could ignore these messages for now but definitely would be good to find a fix."},"comment":{"url":"https://api.github.com/repos/floriankrueger/SOXAppDelegate/issues/comments/90367651","html_url":"https://github.com/floriankrueger/SOXAppDelegate/issues/2#issuecomment-90367651","issue_url":"https://api.github.com/repos/floriankrueger/SOXAppDelegate/issues/2","id":90367651,"user":{"login":"floriankrueger","id":646386,"avatar_url":"https://avatars.githubusercontent.com/u/646386?v=3","gravatar_id":"","url":"https://api.github.com/users/floriankrueger","html_url":"https://github.com/floriankrueger","followers_url":"https://api.github.com/users/floriankrueger/followers","following_url":"https://api.github.com/users/floriankrueger/following{/other_user}","gists_url":"https://api.github.com/users/floriankrueger/gists{/gist_id}","starred_url":"https://api.github.com/users/floriankrueger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/floriankrueger/subscriptions","organizations_url":"https://api.github.com/users/floriankrueger/orgs","repos_url":"https://api.github.com/users/floriankrueger/repos","events_url":"https://api.github.com/users/floriankrueger/events{/privacy}","received_events_url":"https://api.github.com/users/floriankrueger/received_events","type":"User","site_admin":false},"created_at":"2015-04-07T05:30:57Z","updated_at":"2015-04-07T05:30:57Z","body":"Yes, this is a known issue. The thing is, `SOXAppDelegate` implements all the methods in the `UIApplicationDelegate` protocol to forward these (if you implement them) to your Services. \r\n\r\n`- application:performFetchWithCompletionHandler:` however is one of the background data processing methods and does not make sense if you're not enabling background processing for your app. That's all the first warning says. \r\n\r\nThe second warning is caused by the methods `- application:shouldSaveApplicationState:` and `- application:shouldRestoreApplicationState:` which return `YES` in `SOXAppDelegate` if you don't override them. \r\n\r\nIf you want to get rid of the warning, you would need to add `SOXAppDelegate` and `SOXService` to you project manually and remove those methods from `SOXAppDelegate`. Another approach would be to create four separate classes of `SOXAppDelegate`:\r\n\r\n1. The standard, fully implemented version we have now\r\n2. One without background methods but with state restoration methods\r\n3. One without state restoration methods but with background methods\r\n4. One without both state restoration and background methods\r\n\r\nI would be happy to accept a pull request if you're willing to contribute. Otherwise I'll be looking into the issue again when there's more time. I hope this is fine for you ;)"}}