Is it possible to make a call from within an application? Is this covered somewhere in the documentation? Also is it possible to open an app on receiving an incoming call?
[import]uid: 3018 topic_id: 5049 reply_id: 305049[/import]
Is it possible to make a call from within an application? Is this covered somewhere in the documentation? Also is it possible to open an app on receiving an incoming call?
[import]uid: 3018 topic_id: 5049 reply_id: 305049[/import]
I would also like an answer to this. Would like to be able to initiate or end a phone call from within an app. Thanks. [import]uid: 26058 topic_id: 5049 reply_id: 18384[/import]
I think the answer is mostly no. Particularly on iPhone, Apple is very restrictive about accessing the phone part of the device. They don’t want robo-calling or secret calls to 1-900 numbers.
[import]uid: 7563 topic_id: 5049 reply_id: 18406[/import]
This is a fundamental operational mode of these devices. Is anyone at anscamobile addressing this question??? If not I see no need to continue to learn lua and use this platform.
I too am trying to initiate and monitor call’s and status. Can anyone tell me how to do this?? I have tried using system.openURL( “tel:415-NNN-NNNN” ) and set up a build.settings file like this:
settings =
{
androidPermissions =
{
“android.permission.INTERNET”,
“android.permission.CALL_PHONE”,
“android.permission.CALL_PRIVILEGED”,
“android.permission.PROCESS_OUTGOING_CALLS”,
“android.permission.READ_PHONE_STATE”,
“android.permission.RECORD_AUDIO”
},
}
and the simulator reports WARNING: url( tel:415-NNN-NNNN ) is not supported by the simulator, but when I build and run on my mytouch it does nothing.
Can someone tell me, or direct me to documentation, how to place a call, and if possible how to monitor the audio, and then respond to connect/disconnect information???
[import]uid: 21509 topic_id: 5049 reply_id: 21770[/import]
Calling out with system.openURL(“tel:nnnnn”) should work (yes we’ve tested it on iOS and on some Android devices). What version is your device running? [import]uid: 6787 topic_id: 5049 reply_id: 21805[/import]
See this thread too:
http://developer.anscamobile.com/forum/2010/09/17/make-phone-call#comment-21774
I have a 3G mytouch running Android 2.2.1.
I have tried from my most naive call to a static test number to the example in that thread (with my number), and still nothing seems to work. So I am wondering if there is something else I am doing wrong.
For instance when I first tried this I saw the apploader, when trying to install the built .apk file, report that it will be using only the vibrate HW privileges, but that seemed minimal, so I found in the forum someone talking about build.settings files, for which my initial app had none, so I created one as listed above. I had to look up the other settings I thought were appropriate. Are they correct? The apploader still only says that vibrate will be used --not sure why that would be if it’s obeying my build.settings file. Also I am using the trial version of corona, and when I go to build from the simulator, it only lets me use these settings:
target OS compatibility - Android 2.2
keystore - debug
Key Alias - androiddebugkey
Are these all correct? Are there additional steps or settings that I am missing?
Any other sources of documentation or guidance would be much appreciated.
[import]uid: 21509 topic_id: 5049 reply_id: 21814[/import]
Can anyone answer my last questions?
I have now tried many variations and basically it is as if my phone ignores the system.openURL( “tel:415MYNUMB” ) call.
[import]uid: 21509 topic_id: 5049 reply_id: 22040[/import]