バックグラウンド位置取得について

10,025 views
9,992 views

Published on

0 Comments
9 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
10,025
On SlideShare
0
From Embeds
0
Number of Embeds
1,214
Actions
Shares
0
Downloads
38
Comments
0
Likes
9
Embeds 0
No embeds

No notes for slide

バックグラウンド位置取得について

  1. 1. • ( ) • id:ninjinkun • @ninjinkun • Perl • for iPhone
  2. 2. • iPhone API • • API •
  3. 3. API iOS4 • Fast App Switching • Background Audio • Background Navigation • Background Location • Background VoIP • Task Compression • Push Notification • Local Notification
  4. 4. API Background Location • • • • GPS • • Significant Location Changes • Region Monitoring
  5. 5. API 2 API • Significant Location Changes • iPhone3GS • • • Region Monitoring • iPhone4 •
  6. 6. API Significant Location Changes • • startMonitoringSignificantLocationChanges CLLocationManager* locationManager = [[CLLocationManager alloc] init]; locationManager.delegate = self; [locationManager startMonitoringSignificantLocationChanges];
  7. 7. API Significant Location Changes • Delegate Method •locationManager:didUpdateToLocation:fr omLocation:oldLocation --(void)locationManager:(CLLocationManager*)manager - didUpdateToLocation:(CLLocation*)newLocation - fromLocation:(CLLocation*)oldLocation { if ([[UIApplication sharedApplication] applicationState] != UIApplicationStateActive) { Do something... } }
  8. 8. • •
  9. 9. • • • • •
  10. 10. • • Local Notification • Badge
  11. 11. ... • 300m~500m • • • Deleaget Method • notification • • notification
  12. 12. ... • • • ... • ?
  13. 13. • • • • • iPhone Wikipedia
  14. 14. ... • • • • • • ... •
  15. 15. • • • • • • •
  16. 16. • ? • • • Region Monitoring • iPhone4
  17. 17. • iPhone API • Significant Location Changes • Region Monitoring • •

×