Created
June 18, 2015 14:41
-
-
Save fluffyemily/a40c7c643e166f97bfad to your computer and use it in GitHub Desktop.
background fetch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func application(application: UIApplication, performFetchWithCompletionHandler completionHandler: (UIBackgroundFetchResult) -> Void) { | |
let delegate = BrowserProfileSyncDelegate(app: UIApplication.sharedApplication()) | |
delegate.displaySentTabForURL(NSURL(string: "http://mozilla.com")!, title: "Mozilla") | |
completionHandler(.NewData) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Enable Background fetch in Capabilities and add this to the AppDelegate. Then run the project and, in XCode run Debug -> Simulate Background Fetch