<a> 태그를 이용해서 전화걸기

  • 전화걸기 기능은 <a> 태그를 이용해서 아주 쉽게 구현이 가능합니다.
<a ng-href="tel: 01012345678" class="ion-ios-telephone"></a>

Whitelist 등록하기

  • 위에 태그만으로 쉽게 될 줄 알았지만 한가지 더 해야할 것이 있습니다.
  • 프로젝트/config.xml 파일에 tel 과 관련된 몇가지를 정의해줘야 합니다.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<widget>
	...
	<access origin="tel:*" launch-external="yes" />
	<allow-intent href="tel:*" />
	...
 </widget>

빌드 다시 하기

$> cordova build android
$> cordova run --device