Skip to content

Instantly share code, notes, and snippets.

View alicanbatur's full-sized avatar

Ali Can Batur alicanbatur

View GitHub Profile
@alicanbatur
alicanbatur / BackgroundFetch.swift
Created May 24, 2016 13:22 — forked from RameshRM/BackgroundFetch.swift
Swift Background Fetch
Step 1: Enable capabilities "background fetch"
Step2 : Setup AppDelegate.swift
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
let settings = UIUserNotificationSettings(forTypes: UIUserNotificationType.Alert, categories: nil)
UIApplication.sharedApplication().registerUserNotificationSettings(settings)
UIApplication.sharedApplication().setMinimumBackgroundFetchInterval(UIApplicationBackgroundFetchIntervalMinimum)
return true;
@alicanbatur
alicanbatur / .gitignore
Last active May 24, 2016 13:19 — forked from adamgit/.gitignore
For android project.
#########################
# .gitignore file for Xcode4 and Xcode5 Source projects
#
# Apple bugs, waiting for Apple to fix/respond:
#
# 15564624 - what does the xccheckout file in Xcode5 do? Where's the documentation?
#
# Version 2.3
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
#