Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Apple Watch Cellular

Apple Watch Cellular

USAMI Kosuke

October 04, 2017
Tweet

More Decks by USAMI Kosuke

Other Decks in Programming

Transcript

  1. Cellular ௨৴͕΍͖ͬͯͨ » Apple Watch Series 3 Cellular Ϟσϧ »

    ೔ຊͷରԠΩϟϦΞ : Softbank / au / docomo » प೾਺ଳผ : ϤʔϩούɾΞδΞϞσϧ / ถࠃϞσϧ / தࠃϞσϧ
  2. Apple Watch ୯ಠͷ௨৴ » ୯ಠͷ Wi-Fi ௨৴ : watchOS 2

    Ҏ߱ » ୯ಠͷ Cellular ௨৴ : watchOS 4 (New!)
  3. ੾Γସ͑ͷλΠϜϥά » iPhone ͕ۙ͘ʹ͍ͳ͘ͳΔ » → ͍ͬͨΜɺ઀ଓͳ͠ঢ়ଶʹͳΔ » → ͠͹Β͔ͯ͘͠ΒɺCellular

    ௨৴Ͱ઀ଓঢ়ଶʹͳΔ » ͜ͷΑ͏ͳʮ઀ଓํࣜͷ੾Γସ͑଴ͪʯ͕ൃੜ͢Δ
  4. waitsForConnectivity » ͙͢ʹΤϥʔऴྃ͠ͳ͍Α͏ʹ͢ΔϓϩύςΟ͕௥Ճ͞Εͨ let configuration = URLSessionConfiguration.ephemeral if #available(iOS 11.0,

    watchOSApplicationExtension 4.0, *) { configuration.waitsForConnectivity = true } let session = URLSession(configuration: configuration)
  5. Connectivity ͕ؔ܎ͳ͍ঢ়گͰ΋࢖ ͬͯΑ͍ » waitsForConnectivity ͸σϑΥϧτͰ͸ false ʹͳ͍ͬͯΔ » ͓ͦΒ͘ɺैདྷͷ

    URLSession ͷڍಈʹ߹Θͤͯ͋Δ » ͚ͩͲɺৗʹ true ʹͯ͠͠·͑͹͍͍ » Reachability ͱ͔ؾʹ͠ͳͯ͘Α͘ͳΔ
  6. Watch ͷಠཱಈ࡞Λҙࣝ͢Δ » ࣮͸ watchOS 2 ͷࠒ͔Βಉ͡Ͱ͸͋Δ » watchOS 2

    ͔Β୯ಠ௨৴͕Ͱ͖ΔΑ͏ʹͳ͍ͬͯͨͨΊ » ୯ಠ௨৴ͷγʔϯ͕૿͑ͨͨΊɺࠓޙ͸ΑΓ஫ҙ͕ඞཁʹͳΔ
  7. Watch Connectivity framework » ैདྷ͔Β͋Δ iPhone - Watch ؒͷσʔλ΍ΓऔΓ »

    Watch ͕ಠཱͯ͠࢖͑ΔΑ͏ʹͳͬͨͷͰɺಉظ͞Ε͍ͯͳ͍ঢ়ଶ͸ ૿͑Δ » WCSession ͷ updateApplicationContext() Λ࢖ͬͯ໌ࣔతʹಉظ ͢Δ
  8. ࢀߟ » Updating for Apple Watch Series 3 - Videos

    - Apple Developer » waitsForConnectivity | Apple Developer Documentation » App Programming Guide for watchOS » Apple Watch Series 3 (GPS + Cellular) ͰϞόΠϧσʔλ௨৴Λઃ ఆ͠࢖༻͢Δ - Apple αϙʔτ