修改项目config.xml中,增加如下代码
<access origin="sms:*" launch-external="yes" />
<access origin="tel:*" launch-external="yes" />
修改位于ionic.bundle.js中
当前版本位强调内容于44145行代码,增加一个|sms,具体如下
.config(['$compileProvider', function($compileProvider) {
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|tel|sms|ftp|mailto|file|ghttps?|ms-appx|x-wmapp0):/);
$compileProvider.imgSrcSanitizationWhitelist(/^\s*(https?|ftp|file|content|blob|ms-appx|x-wmapp0):|data:image\//);
}]);