Is it possible to send dtmf from iPhone application in background state after connecting the call?
I don't want to use pause and wait. I tried to find from CoreTelephony.framework but didn't find anything like this.
No, apps can't interact with phone calls.
Related
Is there a way to programatically check if the audio system is being exclusively used on the iPhone? If an app tries to use the audio system when a FaceTime or cellular phone call is active, it will get errors when trying to start up audio. I'd like to check if the audio system is being exclusively used before attempting to start up audio.
The app I'm working on is a VOIP type app. When there is an incoming call, I'd like to check if the audio system is usable before the call is allowed to be answered. I have tried CTCallCenter and it works for cell phone calls, but FaceTime calls don't show up in there.
Thanks,
Conway
Couldn't you initialize the audio input as soon as the incoming call is detected and start the queue once the user accepts the call?
Look at the interruption handling delegates in the audio session documentation.
https://developer.apple.com/Library/ios/documentation/Audio/Conceptual/AudioSessionProgrammingGuide/Introduction/Introduction.html
You can set a flag in your app to prevent answering of your voice call if you are between beginInterruption and endInterruption methods.
I want to create an iPhone app with following features:
User should be able to make a call to number.
App will play the prerecorded message when call get connected.
After playing the message, line will be connected and user will be able to communicate with the person to whom he made the call.
I heard that Apple doesn't allow the developers to interact with the calling functionality of iPhone but is there any way to achieve this. Please suggest!
Thanks-
You have heard correctly, According to Apple Developer Library, it is not possible to intercept the calling functionality.
Simple Apple does not allow such stuff with current sdk.
Not so sure but, May be possible for jailbroken iPhone app.
I'm making an iPhone app. I can receive UDP messages using AsyncUdpSocket. I want the app running in background, and when receive a message, an UIAlertView is displaying to the user, and he can enter in the app, or ignore the alert.
Is it possible to detect a message when the app is running in background.
Do I need something to execute my code in this method?
- (void)applicationDidEnterBackground:(UIApplication *)application {
}
I saw lot of tutorials, with timer, but I don't need timer to wake up my app. Also I read that's it's possible while playing music, tracking position or using VOIP.
Do I need to play a fake song to keep my app running? or to do something like that?
This app is for security, for example if someone is touching or moving your motorbike/computer/whatever else, your iPhone can alert you and prevents from stealing.
I read other threads similar but didn't find an answer.
Thank you guys for giving me tips, or any help /sample.
You can't run in the background on a non-jailbroken phone without being in one of those three categories of app, and Apple’s really unlikely to approve your app if you use that facility for another purpose. UDP probably isn’t the best solution for this anyway—if your phone leaves the network that the other device (whatever it is) is on, it won’t receive the notification at all, whether or not it’s in the foreground. You’re probably a lot better off using the push notification API.
This seems like a perfect case to use Apple Push Notifications (APN). You app can register to receive the notifications and the phone will alert the user with any combination of badging, messages, or sounds. Sounds like you already have a server that is sending the UDP messages, so incorporating APN should be minimal. Especially if you use a third-party to send the push notification, such as Urban Airship. (I am not affiliated with them, but have used them on a large commercial project.)
By definition, local events are not triggered by receiving a message.
Can I intercept SMS messages on the iPhone? I would like to intercept messages and NOT have them display on the phone and then send out an auto reply. Is this possible in 3.x? Is it something they may alow in the future?
Nope. Nor is there a method of accessing already delivered text messages. (Even if you could, without background processing I'm not sure how your app would work anyway?)
While the OS stack might be locked down I wonder if it is possible to access the radio layer via serial and control local delivery by issuing GSM AT commands? I don't have access to an IPhone it may very well not be possible.
Does the iPhone SDK allow you to hook into a phone call's audio stream? For instance, could you programatically place a call and send data to a receiving modem? If so, would you kindly point me to the API documentation?
No, it does not. Sorry. You can't even programmatically place a call using the SDK, only open a tel://5551212 link which will end your program.
No, there's no access to the calling features of the phone in the current SDK.