0

我正在使用 Phonegap 编写应用程序。在我的应用程序中,我需要打开本机 android 拨号器。我在用着:

document.location = 'tel:' + NumToDial;

但是,是否可以让它自动拨号而不需要用户在本机 android 拨号器上单击拨号?

4

1 回答 1

2

No, it's not (ordinarily) possible, because of security restrictions.

Regular apps are not allowed to use the ACTION_CALL Intent. It's restricted to prevent unscrupulous apps from, say, auto-dialing a 1-900 number and costing the user money.

Only system apps (that is, those that come pre-installed on the device) have access to ACTION_CALL.

Non-system apps have to settle for opening the dialer.

于 2013-01-15T16:59:49.720 回答