$30 off During Our Annual Pro Sale. View Details »

CallKit SkyWay

yorifuji
August 21, 2019

CallKit SkyWay

SkyWay UG Tokyo #4

yorifuji

August 21, 2019
Tweet

Other Decks in Programming

Transcript

  1. iOSͷCallKitϑϨʔϜʔΫͱ SkyWay SkyWay UG Tokyo #4

  2. ࣗݾ঺հ • ґ౻ ॆൣʢ@yorifujiʣ • SIerͷιϑτ΢ΣΞΤϯδχΞ • WebRTCʢSkyWayʣΛ৮Γ࢝Ίͨͷ͸̍೥ఔલ

  3. CallKit • iOS 10 Ҏ߱Ͱ࢖͑Δඪ४ϑϨʔϜϫʔΫ • OS͕༻ҙ͍ͯ͠Δ ௨࿩UI ͕ར༻Ͱ͖Δ

  4. ௨࿩ΞϓϦʹඞཁͳ΋ͷ • CallKit ͕ఏڙ͢Δͷ͸ ௨࿩UI ͷΈ • ϏσΦɾԻ੠௨࿩෦෼͸ΞϓϦଆͰ࣮૷͕ඞཁ • WebRTC

    ͳͲΛ࢖͏
  5. SkyWayͱCallKitΛ࢖ͬͨϏσΦ௨࿩ΞϓϦ https://github.com/yorifuji/skyway-callkit-sampler

  6. Ͱ͖Δ͜ͱ • CallKit ͷجຊతͳڍಈ͕ࢼͤ·͢ • ̎୆ͷ୺຤ͰΞϓϦΛىಈͯ͠ɺ઀ଓઌͷPeerΛબ୒ • ݺͼग़͞Εͨଆʹண৴ը໘͕දࣔɺԠ౴͢Δͱ௨࿩։࢝ • iPadͰ΋OKɺSimulator͸CallKitඇରԠͷͨΊNG

  7. ઀ଓͷγʔέϯε peer.connect() peer.call() peer.answer() ൃ৴ଆ ண৴ଆ

  8. ิ଍ • ࣮༻తͳ௨࿩ΞϓϦͰ͸ىಈ͍ͯ͠ͳͯ͘΋ண ৴Ͱ͖Δඞཁ͕͋Δ • PushKit ௨஌ΛૹΔͱΞϓϦ͕όοΫάϥ΢ϯ υͰىಈͯ͠௨࿩͕Ͱ͖Δ  

  9. PushKit ʹΑΔൃ৴ɾண৴ APIαʔό APNs 1.ൃ৴ 3.௨஌ʢண৴ʣ 2.PushKit ௨஌ 4.௨࿩ʢWebRTCʣ

  10. CallKit Λ৮ͬͯΈͨײ૝

  11. ϏσΦ௨࿩ͱͷ૬ੑ͕ྑ͘ͳ͍ • ୺຤͕ϩοΫঢ়ଶͰண৴͢ΔͱϢʔβʔ͕ϩο Ϋղআ͢Δ·ͰΞϓϦଆͷը໘͕දࣔ͞Εͳ͍ ண৴ Ԡ౴ ϩοΫղআ Ԡ౴ʢඇϩοΫ࣌ʣ

  12. தࠃ޲͚AppStoreͰ഑৴͢ΔΞϓ Ϧ͸CallKitΛར༻Ͱ͖ͳ͍ • AppStoreConnectʢiTunesConnectʣʹCallKitΛ࢖ͬͨΞϓ ϦΛਃ੥ͨ͠ΒϦδΣΫτ • தࠃ޲͚AppStoreͰ഑৴͞ΕΔΞϓϦ͸ CallKit ػೳ͕ deactivate͞Ε͍ͯΔඞཁ͕͋ΔͨΊ

    • ͜ͷέʔεͰ͸഑৴ઌ͔Βʮதࠃຊ౔ʯΛ֎ͯ͠৹ࠪ͸௨ա • ϨϏϡϫʔίϝϯτʹʮCallKit ͕தࠃͰ͸ not active ͞Εͯ ͍ΔͳΒ Resolution Center Ͱίϝϯτͯ͠Ͷʯͱͷهࡌ͋Γ
  13. ·ͱΊ • CallKit Λ࢖͏ͱiOSͷ௨࿩UI͕૊ΈࠐΊΔ • ϏσΦɾԻ੠௨࿩෦෼͸ΞϓϦଆͰ࣮૷͢Δ • SkyWayͱͷ૊Έ߹Θͤ΋OKͰͨ͠

  14. ͝੩ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠