I need to detect on iOS the incoming number during ringing to use it into an action.
It is possible in iPhone?
No, Apple do not provide an API for this.
No its not possible to track incoming phone calls in iphone sdk. If you do this with some private API your app will get rejected from app store.
Related
I want to alert the user about an sms while my app is running. I am a bit confused if it is possible to get an SMS notification while the app is running. Which API should I use if this is possible?
It's not possible with the public API. There is no public API for it.
You might be able to do it via private API on a jailbroken device; I really don't know. If so, keep in mind that you won't be able to ship an app using that API in the app store.
I need to get the sms details from iPhone, that is count of sent and received messages and all messages that are stored in iPhone device. How can I implement them programmatically?
I am not sure if the current SDK supports functions to access SMS information as there is currently no API to get access to the user's SMS/MMS library.. I guess you can only do it for Jailbroken devices
I need to create an app which enables the caller in the other end to hear music while I press hold on my iPhone. This music will be selected from my library. Is there any API or anything which can help me with this?
There is no public iOS API by with an app can either send or receive audio from the Phone app during a phone call. The security sandbox will prevent even a private API from doing this on a stock OS device.
How to develop a sms app for iphone?
Are there any api available to develop this kind of app?
Is there any other way to develop this type of app for iphone apart from using api
Please suggest me some ideas..
Thanks
From what I know, SMS can only be sent from the official SMS app.
You can only forward the user to the application. You may specify the phone number of the recipient. Unfortunately, you can't even specify the content of the SMS, so it's not of much use.
If you are interested : How to programmatically send SMS on the iPhone?
If you are interested in how to design an application that looks like the SMS application, please specify this in your question.
Check the documentation for MFMessageComposeViewController. iOS 4.0 or later is required though.
On earlier OSes your best bet is to open an sms: URL. The URL scheme only allows you to specify the destination number, not the content of the message.
After a review of the iPhone SDK documentation, I have not yet found a way for an application to be written such that it can programmatically process the content of an incoming SMS message within the iPhone platform. The idea would be for such an application to be running in the background and based on specifically formatted SMS messages would be able to take specific actions.
Does anybody know if this is possible with an iPhone SDK application and if so, provide a pointer to information about how this can be done?
Unfortunately, you cannot intercept - or be notified of - incoming SMS messages with the iPhone SDK.
One possible alternative, is to register a custom URL scheme that launches your application when a url with that scheme is embedded in the sms message and the user cicks on it.
to set a custom url scheme, you must implement both the CFBundleURLSchemes and CFBundleURLName keys in your application's info.plist.
In your Application's delegate, you can then implement the application:handleOpenURL: method to get any paramaters that were passed to your App from the url in the SMS message.
I believe that currently the SDK doesn't allow for background apps (except for apple ones).
BREW and J2ME had (and probably still have) ways to launch your app via specially formatted SMS, which may be what the Jeff is referring to.
Apple does have the upcoming Push Server which will allow you to send the user an alert which will give them the option of launching your app, but you cannot launch your app for them.
Unfortunately just registering an URL scheme dosn't help you at all, because the SMS app makes "http://" urls clickable only...
You can use CoreTelephony framework.But you must user some private api.And I have some demo code for this. https://github.com/edison0951/AppNotifyBySMSDemo