Placing a phonecall including extension

杀马特。学长 韩版系。学妹 提交于 2019-12-25 07:26:28

问题


I have been trying to call a number from within my Titanium Appcelerator application using various methods. The problem is, that is should dial an extension as well. I have tried the formats "tel:1234567890,34", "tel:1234567890p34", "1234567890w34". And I have tried it using:

// method 1
var intent = Ti.Android.createIntent({
  action : Ti.Android.ACTION_CALL,
  data : phoneNumber
});
Ti.Android.currentActivity.startActivity(intent);

// method 2
Ti.Platform.openURL(phoneNumber);

All combinations of formats and methods do not work. The "p" is rewritten to "7". Using a comma, everything after the comma is neglected. How can I make an outbound call including an extension?


回答1:


Not sure if it works on Android but I know on iPhone when I wanted to place a phone call with an extension I would use 4 commas (,,,,)

Let me know if it works I'm curious

Example: 1-555-455-4443,,,,8888

*Note I was using the native SDK's (NOT Titanium Appcelerator)



来源:https://stackoverflow.com/questions/15413355/placing-a-phonecall-including-extension

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!