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

B2Cモバイル開発のいまとこれから #forcedotcomjp

Naoya Ito
September 06, 2013

B2Cモバイル開発のいまとこれから #forcedotcomjp

Salesforce Developer Conference Tokyo 2013 での発表資料

Naoya Ito

September 06, 2013
Tweet

More Decks by Naoya Ito

Other Decks in Technology

Transcript

  1. .#BB4ͷఏڙ͢Δ΋ͷ •  Ϣʔβొ࿥ɾ؅ཧɾೝূ •  ϝοηʔδϯά ϓογϡ௨஌  •  Ϋϥ΢υετϨʔδ – 

    ϑΝΠϧετϨʔδ –  ΦϒδΣΫτετϨʔδ •  Ϋϥ΢υ্Ͱͷܭࢉॲཧ •  ՝ۚ *O"QQ1VSDITF  •  ར༻෼ੳ •  Ґஔ৘ใɺιʔγϟϧͳͲͷίϯςΩετ
  2. 1BSTFJ044%, ίʔυ͸3VCZ.PUJPO  #  Push  Notification  を有効に   #  ParseのKVS

     に  deviceToken  ó  user_id  のマッピングを保持   PFInstallation.currentInstallation.tap  do  |i|      i.setDeviceTokenFromData  deviceToken      i.setObject  @user_id,  forKey:"owner"      i.saveInBackground   end
  3. 1BSTF3&45"1* #  REST  API  で、push通知を端末に送るよう  Parse  に指令   curl  -­‐X

     POST  \      -­‐H  "X-­‐Parse-­‐Application-­‐Id:  "..."  \      -­‐H  "X-­‐Parse-­‐REST-­‐API-­‐Key:  "..."  \      -­‐H  "Content-­‐Type:  application/json"  \      -­‐d  '{                  "data":  {                      "where":  {  "owner":  "naoya"  }                      "alert":  "Hello,  World!"                  }              }'  \      https://api.parse.com/1/push     ϓογϡ௨஌ʹ·ͭΘΔ໘౗ͳՕॴ͸Ϋϥ΢υଆͰ΍ͬͯ͘ ΕΔ ྫ"1/αʔόͱͷ઀ଓҡ࣋ 
  4. ·ͱΊ •  #$ΞϓϦ։ൃͷϓϥΫςΟεΛ঺հ •  ैདྷ։ൃΑΓ΋69։ൃʹϦιʔεΛׂ͘ •  ։ൃϓϩηε΍Πϯϑϥͷѻ͍Λચ࿅ͤ͞Δ͜ͱ Ͱࢼߦࡨޡճ਺Λ૿΍͢ –  ݁Ռɺ6*։ൃͷϦιʔε֬อٴͼධՁ͕ॊೈʹͳΔ

    •  044΍Ϋϥ΢υΛ࠷େݶ׆༻ •  ͨͩ͠ɺָΛ͢ΔՕॴ͸ਖ਼͘͠ݟۃΊΔ –  ΞϓϦ͸ૉ௚ʹɺී௨ͷ΍ΓํͰ࡞Δ –  ʮָͦ͏͔ͩΒʯͱ͍͏ཧ༝͚ͩͰϫϯιʔε )5.-ࣗಈੜ੒ͳͲ௥͍ٻΊͳ͍ –  पล؀ڥ͸ʮڊਓͷݞͷ্ʯʹ৐Δ