플러그인 추가
cordova plugin add cordova-plugin-whitelist
config.xml 에 추가 내용
<access origin="*"/>
<access origin="tel:*" launch-external="yes"/>
<access origin="geo:*" launch-external="yes"/>
<access origin="mailto:*" launch-external="yes"/>
<access origin="sms:*" launch-external="yes"/>
콘트롤러 안에서 아래와 같이 사용하면 된다.
var uri = "mailto:?subejct=제목&body=내용";
window.open('uri', '_system');
window.open("sms:000-0000-0000", "_system");
'Js > ionic' 카테고리의 다른 글
GooglePlay SMS 및 통화 기록 권한 정책 변경 (0) | 2019.03.05 |
---|---|
ionic build 시에 gradle 설치 오류 처리 (0) | 2017.05.16 |
ionic npm 설치 셋팅 (0) | 2017.02.07 |