SlideShare a Scribd company logo
1 of 15
WebSMS
S2팀
2013-08-08
WebSMS?
웹에서 SMS와 MMS를 사용 할 때 쓰는 API
단,
Firefox OS 에서 certified applications (인증 받은 앱들)만 사용 가능
Certified Apps 는 현재 미리 깔려진 앱들 뿐
3rd 파티 앱에서는 아직 사용 못함
WebSMS 는 기본적으로 비활성화
dom.sms.enabled 설정을 true 로 지정해서 활성화
dom.sms.whitelist 설정에 명시 된 호스트에서만 사용 가능
오직 Firefox OS (B2G) 에 인증된 앱에서만 이용 가능
MMS는 Firefox OS 1.1 부터 이용 가능
비 표준이며 W3C System Application
Working Group 에서 논의되고 있음
DOM interfaces
SMS interfaces
window.navigator.mozSms
MozSmsManager
MozSmsMessage
MozSmsEvent
MozSmsFilter
MozSmsSegmentInfo
MMS and SMS interfaces
window.navigator.mozMobileMessage
MozMobileMessageManager
MozMmsMessage
MozMmsEvent
MozMobileMessageThread
비슷한 역할을 하는 두 인터페이스
mozSms 는 mozMobileMessage 로 대체되었음
window.navigator.moz
Sms
삭제 되고
window.navigator.mozMobileMe
ssage 사용
MozSmsManger 객체를 반환.
SMS 메시지를 보내거나 받는데 사용
됨
var sms = window.navigator.mozSms;
window.navigator.mozMo
bileMessage
MozMobileMessageManager 객체 반환.
MMS와 SMS 메시지를 보내거나 받는 데 사
용
var message = window.navigator.mozMobileMessage;
MozSmsManager
삭제 되고 MozMobileMessageManager
사용
SMS 메시지 전송과 관리 기능 제공
이벤트 핸들러
MozSmsManager.ondeliveryerror
MozSmsManager.ondeliverysuccess
MozSmsManager.onreceived
MozSmsManager.onsent
MozSmsManager.onsending
MozSmsManager.onfailed
메소드
MozSmsManager.delete(param)
MozSmsManager.getMessage(id)
MozSmsManager.getMessages(filter, reverseOrder)
MozSmsManager.getSegmentInfoForText(text)
MozSmsManager.markMessageRead(id, isRead)
MozSmsManager.send(number, message)
MozSmsManager.getThreads()
EventTarget 의 함수 상속 받음
EventTarget.addEventListener (type, listener, useCapture
Optional, wantsUntrusted Non-standard)
EventTarget.removeEventListener (type, listener, useCapture
Optional)
EventTarget.dispatchEvent (event)
MozMobileMessageManager
MMS와 SMS 메시지 전송과 관리 기능 제공
이벤트 핸들러
MozMobileMessageManager.ondeliveryerror
MozMobileMessageManager.ondeliverysuccess
MozMobileMessageManager.onreceived
MozMobileMessageManager.onretrieving
MozMobileMessageManager.onsent
MozMobileMessageManager.onsending
MozMobileMessageManager.onfailed
메소드
MozMobileMessageManager.delete(param)
MozSmsManager.getMessage(id)
MozSmsManager.getMessages(filter, reverseOrder)
MozMobileMessageManager.getSegmentInfoForText(text)
MozMobileMessageManager.markMessageRead(id, isRead)
MozMobileMessageManager.send(number, message)
MozMobileMessageManager.sendMMS(param)
MozMobileMessageManager.getThreads()
MozMobileMessageManager.retrieveMMS(id)
EventTarget 의 함수 상속 받음
EventTarget.addEventListener (type, listener, useCapture Optional,
wantsUntrusted Non-standard)
EventTarget.removeEventListener (type, listener, useCapture
Optional)
EventTarget.dispatchEvent (event)
MozSmsMessage
SMS 문자 메시지 객체
발신자, 수신자, 본문, 날짜 정보를 가지고
있음 (읽기 전용)
MozMmsMessage
MMS 메시지 객체
발신자, 수신자, 본문, 첨부 파일, 날짜와 같
은 모든 정보를 가지고 있음. (읽기 전용)
MozSmsEvent
문자 메시지와 관련된 이벤트 객체
Event 의 속성과 함수를 상속 받음
이벤트
받았을 때, 보낼 때, 보내기 성공 시 발생
MozMmsEvent
MMS 메시지와 관련된 이벤트 객체
Event 의 속성과 함수를 상속 받음
이벤트
받았을 때, 보낼 때, 보내기 성공 시 발생
MozSmsFilter
(Moz)SmsMessage 객체들을 필터링 할 때
사용
startDate, endDate, numbers(폰번호), delivery(sent,
received), read(read, unread), threadid (thread id 번호)
MozSmsSegmentInfo
문자가 어떻게 세그먼트로 나누어지는지에 관한
정보 제공
각 세그먼트는 multi-part SMS 중 단일 SMS 를
의미함
전체 세그먼트 갯수, 각 세그먼트당 사용 가능한 문자 갯수, 마지
막 세그먼트에서 사용 가능한 문자의 최대 갯수
MozMobileMessageThread
메시지의 스레드 정보 (읽기 전용)
스레드 id 숫자, 본문, 읽지 않은 메시지 개수, 참가자 주소, 타임스
탬프, type(sms or mms)
Sample code
{
"version": "0.0.1",
"name": "junho test",
"description": "I want to test WebSMS",
"type": "certified",
"launch_path": "index.html",
"icons": {
"64": "/images/icon-64.png",
"256": "/images/icon-256.png"
},
"permissions": {
"sms":{}
},
"developer": {
"name": "junho85",
"url": "http://junho85.pe.kr"
},
"default_locale": "en"
Sample code - manifest
type - certified
permission - sms
추가 해 주는 것이 중요
Conclusion
WebSMS 는 아직 표준 아니고 논의 중
인증 받은 앱 말고는 못씀
마켓에 올린 앱으로 SMS 를 보낼 방법은 아직 없음
mozSms 는 mozMobileMessage 로 대체되어 가는 것으로 보임
현재 (2013-08-08 기준) Firefox Mobile 에서만 지원
Reference
WebSMS
https://developer.mozilla.org/en-US/docs/WebAPI/WebSMS
mozilla-b2g/gaia
https://github.com/mozilla-b2g/gaia/tree/master/apps/sms
Q & A

More Related Content

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Web sms ver1.2

  • 2. WebSMS? 웹에서 SMS와 MMS를 사용 할 때 쓰는 API
  • 3. 단, Firefox OS 에서 certified applications (인증 받은 앱들)만 사용 가능 Certified Apps 는 현재 미리 깔려진 앱들 뿐 3rd 파티 앱에서는 아직 사용 못함
  • 4. WebSMS 는 기본적으로 비활성화 dom.sms.enabled 설정을 true 로 지정해서 활성화 dom.sms.whitelist 설정에 명시 된 호스트에서만 사용 가능 오직 Firefox OS (B2G) 에 인증된 앱에서만 이용 가능 MMS는 Firefox OS 1.1 부터 이용 가능 비 표준이며 W3C System Application Working Group 에서 논의되고 있음
  • 5. DOM interfaces SMS interfaces window.navigator.mozSms MozSmsManager MozSmsMessage MozSmsEvent MozSmsFilter MozSmsSegmentInfo MMS and SMS interfaces window.navigator.mozMobileMessage MozMobileMessageManager MozMmsMessage MozMmsEvent MozMobileMessageThread 비슷한 역할을 하는 두 인터페이스 mozSms 는 mozMobileMessage 로 대체되었음
  • 6. window.navigator.moz Sms 삭제 되고 window.navigator.mozMobileMe ssage 사용 MozSmsManger 객체를 반환. SMS 메시지를 보내거나 받는데 사용 됨 var sms = window.navigator.mozSms; window.navigator.mozMo bileMessage MozMobileMessageManager 객체 반환. MMS와 SMS 메시지를 보내거나 받는 데 사 용 var message = window.navigator.mozMobileMessage;
  • 7. MozSmsManager 삭제 되고 MozMobileMessageManager 사용 SMS 메시지 전송과 관리 기능 제공 이벤트 핸들러 MozSmsManager.ondeliveryerror MozSmsManager.ondeliverysuccess MozSmsManager.onreceived MozSmsManager.onsent MozSmsManager.onsending MozSmsManager.onfailed 메소드 MozSmsManager.delete(param) MozSmsManager.getMessage(id) MozSmsManager.getMessages(filter, reverseOrder) MozSmsManager.getSegmentInfoForText(text) MozSmsManager.markMessageRead(id, isRead) MozSmsManager.send(number, message) MozSmsManager.getThreads() EventTarget 의 함수 상속 받음 EventTarget.addEventListener (type, listener, useCapture Optional, wantsUntrusted Non-standard) EventTarget.removeEventListener (type, listener, useCapture Optional) EventTarget.dispatchEvent (event) MozMobileMessageManager MMS와 SMS 메시지 전송과 관리 기능 제공 이벤트 핸들러 MozMobileMessageManager.ondeliveryerror MozMobileMessageManager.ondeliverysuccess MozMobileMessageManager.onreceived MozMobileMessageManager.onretrieving MozMobileMessageManager.onsent MozMobileMessageManager.onsending MozMobileMessageManager.onfailed 메소드 MozMobileMessageManager.delete(param) MozSmsManager.getMessage(id) MozSmsManager.getMessages(filter, reverseOrder) MozMobileMessageManager.getSegmentInfoForText(text) MozMobileMessageManager.markMessageRead(id, isRead) MozMobileMessageManager.send(number, message) MozMobileMessageManager.sendMMS(param) MozMobileMessageManager.getThreads() MozMobileMessageManager.retrieveMMS(id) EventTarget 의 함수 상속 받음 EventTarget.addEventListener (type, listener, useCapture Optional, wantsUntrusted Non-standard) EventTarget.removeEventListener (type, listener, useCapture Optional) EventTarget.dispatchEvent (event)
  • 8. MozSmsMessage SMS 문자 메시지 객체 발신자, 수신자, 본문, 날짜 정보를 가지고 있음 (읽기 전용) MozMmsMessage MMS 메시지 객체 발신자, 수신자, 본문, 첨부 파일, 날짜와 같 은 모든 정보를 가지고 있음. (읽기 전용)
  • 9. MozSmsEvent 문자 메시지와 관련된 이벤트 객체 Event 의 속성과 함수를 상속 받음 이벤트 받았을 때, 보낼 때, 보내기 성공 시 발생 MozMmsEvent MMS 메시지와 관련된 이벤트 객체 Event 의 속성과 함수를 상속 받음 이벤트 받았을 때, 보낼 때, 보내기 성공 시 발생
  • 10. MozSmsFilter (Moz)SmsMessage 객체들을 필터링 할 때 사용 startDate, endDate, numbers(폰번호), delivery(sent, received), read(read, unread), threadid (thread id 번호) MozSmsSegmentInfo 문자가 어떻게 세그먼트로 나누어지는지에 관한 정보 제공 각 세그먼트는 multi-part SMS 중 단일 SMS 를 의미함 전체 세그먼트 갯수, 각 세그먼트당 사용 가능한 문자 갯수, 마지 막 세그먼트에서 사용 가능한 문자의 최대 갯수 MozMobileMessageThread 메시지의 스레드 정보 (읽기 전용) 스레드 id 숫자, 본문, 읽지 않은 메시지 개수, 참가자 주소, 타임스 탬프, type(sms or mms)
  • 12. { "version": "0.0.1", "name": "junho test", "description": "I want to test WebSMS", "type": "certified", "launch_path": "index.html", "icons": { "64": "/images/icon-64.png", "256": "/images/icon-256.png" }, "permissions": { "sms":{} }, "developer": { "name": "junho85", "url": "http://junho85.pe.kr" }, "default_locale": "en" Sample code - manifest type - certified permission - sms 추가 해 주는 것이 중요
  • 13. Conclusion WebSMS 는 아직 표준 아니고 논의 중 인증 받은 앱 말고는 못씀 마켓에 올린 앱으로 SMS 를 보낼 방법은 아직 없음 mozSms 는 mozMobileMessage 로 대체되어 가는 것으로 보임 현재 (2013-08-08 기준) Firefox Mobile 에서만 지원
  • 15. Q & A