我有一个奇怪的问题。我无法从应用程序中打开带有预定义号码或邮件意图的拨号盘。
我正在使用 netbeans 8.0.1 创建 cordova 应用程序。我的 Cordova 版本是 4.0.0。
我按照步骤创建了一个应用程序,并选择了 HelloWorld Cordova 模板。我将其 html 文件修改为如下所示:
<html>
<head>
<meta charset="utf-8" />
<meta name="format-detection" content="telephone=no" />
<meta name="msapplication-tap-highlight" content="no" />
<!--WARNING: for iOS 7, remove the width=device-width and height=device-height attributes. See https://issues.apache.org/jira/browse/CB-4323-->
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
<link rel="stylesheet" type="text/css" href="css/index.css" />
<title>Hello World</title>
</head>
<body>
<h1><a href="tel:+919685968574" >call</a></h1><br>
<h1><a href="mailto:[email protected] /cdn-cgi/l/email-protection?subject=Hello" >Send Mail</a></h1>
<script type="text/javascript" src="cordova.js"></script>
</body>
</html>
奇怪的是,我最后尝试安装Cordova的所有核心插件,但仍然不起作用。
请帮帮我...谢谢...
Edit:我参考了这些链接,但没有帮助:
使用 PhoneGap 在 Android 上自动呼叫预定义号码 https://stackoverflow.com/questions/13233091/call-predefined-number-automatically-on-android-with-phonegap
http://rickluna.com/wp/2012/02/making-a-phone-call-from-within-phonegap-in-android-and-ios/ http://rickluna.com/wp/2012/02/making-a-phone-call-from-within-phonegap-in-android-and-ios/