クロスグレードの実装とつらみの話

 クロスグレードの実装とつらみの話

3f4e0340909015791f1712c52b116da7?s=128

Hideaki Tamai

April 10, 2019
Tweet

Transcript

  1. ΫϩεάϨʔυͷ࣮૷ͱ ͭΒΈͷ࿩ Hideaki Tamai In-tamachi Billing Night #1 2019/04/10

  2. ࣗݾ঺հ )JEFBLJ5BNBJ ɾ.POFZ'PSXBSE *OD ɾJ04ΞϓϦΤϯδχΞ ɾ͘͘͢͢ʂࢠҭͯΤϯδχΞ.FFUVQ UBNBEPO !UBNBEPO

  3. ઌ೔ɺ೥ֹϓϥϯΛϦϦʔε͠·ͨ͠

  4. αϒεΫϦϓγϣϯͷ ϥϯΫʹ͍ͭͯ

  5. ɾΞοϓάϨʔυ ɾμ΢ϯάϨʔυ ɾΫϩεάϨʔυ ͷछྨ͕͋Δ

  6. ೥ֹϓϥϯͱֹ݄ϓϥϯʹػೳࠩ ͸ͳ͍ ҟͳΔͷ͸ظ͚ؒͩ ͷͰ ΫϩεάϨʔυʹͳΔ IUUQTEFWFMPQFSBQQMFDPNKQBQQTUPSFTVCTDSJQUJPOTSBOLJOH

  7. ΫϩεάϨʔυͷྫ(ϓϥϯA→B) ϓϥϯมߋલͷ՝ۚ(ϓϥϯA)ͷ༗ޮظݶ·Ͱ͸ϓϥϯA͕༗ޮɺϓϥϯB ͸ແޮɻ ϓϥϯAͷ༗ޮظݶ͕དྷͨλΠϛϯάͰɺϓϥϯA͸༗ޮظݶ੾ΕͱͳΓ ϓϥϯB͕৽ͨʹొ࿥͞ΕΔɻ

  8. ࣮૷ͨ͠6*

  9. ৽نͰ௥Ճͨ͠೥ֹϓϥϯɺطଘͷֹ݄ϓϥϯͷ ୯ମߪೖ੒ޭ ࢥͬͨΑΓ؆୯ͩͬͨͳ(ϑϥά)

  10. ϓϥϯมߋͷߪೖτϥϯβΫγϣϯ͕fail ͢Δ໰୊ൃੜ

  11. ΞΠςϜߪೖॲཧதʹൃՐ͢ΔԼهϝιουͷڍಈ paymentQueue(_:updatedTransactions:) transactionState = .failed The transaction.error:Error Domain=SKErrorDomain Code= 0

    "Cannot connect to iTunes Store"
  12. ϓϥϯมߋͷτϥϯβΫγϣϯ͔Ͳ͏͔ ൑ผग़དྷͳͦ͞͏

  13. ͔͠΋ɺ͜Εʹؔ͢Δ৘ใ͕Web্ʹશ͘ແ͍ །Ұݟ͚ͭͨϑΥʔϥϜͷεϨου (Appleͷਓ͕ճ౴͍ͯͨ͠) https://forums.developer.apple.com/thread/112663

  14. *OUIJTDBTF UIFVTFSBDDPVOUIBTOPUCFFO DIBSHFE 5IFFTTFODFJTUIBUUIFUSBOTBDUJPOXBTOPUB TVDDFTT CVUJOTUFBEBGBJMVSF "TUIFSFJTOPVTFSUPCFDIBSHFEMBUFSTUBUF UIF "QQ4UPSFSFUVSOTUIFGBJMFEUSBOTBDUJPOSFTVMU ༁ɿ͜ͷέʔεͷ৔߹ɺϢʔβʔΞΧ΢ϯτ͸੥ٻ͞

    Ε͍ͯ·ͤΜɻʮޙͰ੥ٻ͞ΕΔϢʔβʔʯͱ͍͏ε ςʔτ͕ແ͍ͷͰɺτϥϯβΫγϣϯ͸ࣦഊ͠·͢ɻ
  15. ݁ہɺΞϓϦ಺ϓϥϯมߋ͸ఘΊͯ "QQ4UPSFΞϓϦͷʮొ࿥ͷ؅ཧʯ͔ΒͷΈมߋՄೳʹͨ͠

  16. ʮొ࿥ͷ؅ཧʯ͸ΞϓϦະΠϯετʔϧͰ΋ ૢ࡞ՄೳͰɺ͜ͷը໘Ͱͷૢ࡞͸ΞϓϦʹ ௨஌͞Εͳ͍ͬΆ͍ͷͰ Status Update NotificationsΛ ࠾༻ͨ͠ https://developer.apple.com/library/archive/documentation/NetworkingInternet/ Conceptual/StoreKitGuide/Chapters/Subscriptions.html#//apple_ref/doc/uid/ TP40008267-CH7-SW13

  17. ʮొ࿥ͷ؅ཧʯ͸4BOECPY؀ڥ͕ແ͘ ͜Ε·ͨπϥ͔ͬͨ ಛʹαʔόαΠυ ͷͰ·ͨͷػձʹ

  18. ·ͱΊ w*"1ͷ௨ৗ࣮૷͸8FC্ʹ৘ใ͕݁ߏ͋Δ͕ɺϓϥϯ มߋ࣌ͷڍಈ͸৘ใ͕΄΅ແͯ͘େมͩͬͨ wޙ΄ͲεϥΠυΛެ։͢ΔͷͰɺ୭͔ͷ໾ʹཱͯ͹޾͍ Ͱ͢ w΋ͬͱͳ࣮૷Λ஌ͬͯΔΑͱ͍͏ํ͕ډΕ͹ੋඇ ڭ͍͑ͯͩ͘͞

  19. ͝ਗ਼ௌ͋Γ͕ͱ͏͟͝ ͍·ͨ͠