Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
iOS 7 - Background Fetching (CocoaHeads Lyon oc...
Search
Vincent Tourraine
October 11, 2013
Programming
240
0
Share
iOS 7 - Background Fetching (CocoaHeads Lyon octobre 2013)
Billet de blog associé :
http://www.vtourraine.net/blog/ios-7-background-fetching
Vincent Tourraine
October 11, 2013
More Decks by Vincent Tourraine
See All by Vincent Tourraine
iOS 7 - View Controllers Custom Transitions (CocoaHeads Lyon avril 2014)
vtourraine
0
160
Activity View Controller (CocoaHeads Lyon octobre 2013)
vtourraine
0
140
Other Decks in Programming
See All in Programming
ドメインイベントでビジネスロジックを解きほぐす #phpcon_odawara
kajitack
3
820
mruby on C#: From VM Implementation to Game Scripting (RubyKaigi 2026)
hadashia
2
790
JOAI2026 1st solution - heron0519 -
heron0519
0
150
The Less-Told Story of Socket Timeouts
coe401_
3
690
【26新卒研修資料】TDD実装演習
dip_tech
PRO
0
110
Programming with a DJ Controller — not vibe coding
m_seki
3
470
属人化しないコード品質の作り方_2026.04.07.pdf
muraaano
0
260
セグメントとターゲットを意識するプロポーザルの書き方 〜採択の鍵は、誰に刺すかを見極めるマーケティング戦略にある〜
m3m0r7
PRO
0
590
t *testing.T は どこからやってくるの?
otakakot
1
790
의존성 주입과 모듈화
fornewid
0
150
ふりがな Deep Dive try! Swift Tokyo 2026
watura
0
250
AIを導入する前にやるべきこと
negima
2
290
Featured
See All Featured
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
340
How STYLIGHT went responsive
nonsquared
100
6.1k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
520
Game over? The fight for quality and originality in the time of robots
wayneb77
1
160
The SEO Collaboration Effect
kristinabergwall1
1
430
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
240
The Cult of Friendly URLs
andyhume
79
6.9k
Automating Front-end Workflow
addyosmani
1370
200k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.5k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.9k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
270
How to make the Groovebox
asonas
2
2.1k
Transcript
Background Fetching CocoaHeads Lyon - octobre 2013 Vincent Tourraine -
shazino
Pour quoi faire ? ➡ Télécharger des nouvelles données sans
ouvrir l’application ➡ Exécution régulière en tâche de fond
Mise en place
Configuration du projet
Info.plist <key>UIBackgroundModes</key> <array> <string>fetch</string> </array>
Définir l’intervalle - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [application setMinimumBackgroundFetchInterval:
UIApplicationBackgroundFetchIntervalMinimum]; // ... }
Appel en tâche de fond - (void)application:(UIApplication *)application performFetchWithCompletionHandler: (void
(^)(UIBackgroundFetchResult))completionHandler { [self.manager GET:@"http://example.com/resources.json" parameters:nil success:^(id operation, id responseObject) { completionHandler(UIBackgroundFetchResultNewData); } failure:^(id operation, NSError *error) { completionHandler(UIBackgroundFetchResultFailed); }]; }
Debug
Configuration du scheme
Plus d’infos • UIApplication Class Reference https://developer.apple.com/library/ios/documentation/uikit/reference/ UIApplication_Class/Reference/Reference.html • UIApplicationDelegate
Protocol Reference https://developer.apple.com/library/ios/documentation/uikit/reference/ UIApplicationDelegate_Protocol/Reference/Reference.html