Receive notiifcation for Email / SMS - iphone

Can i get notifications in my app when receiving SMS / Email on the devices such as iphone / android / blackberry? Also can i able to send / Receive SMS form my app on these devices (iphone / android / blackberry)
Please guide me out...
Thanks a lot

There is no default E-mail client on Android, so it will depend on the e-mail client that the users uses. SMS on Android will not be a problem.
On iOS you can only send SMS/E-mail there is no way to check for any received SMS/E-mails.
Blackberry, not sure.
Windows phone 7, same as the iPhone send only.

On Blackberry for SMS, you can see the article Different ways to listen for SMS messages for info on receiving SMS and the SMS class javadoc for info on listening for outgoing messages. You will probably also find the article Sending and receiving GSM SMS on Blackberry useful.
For email, you should probably start with the article Add a listener to a folder and then dive into the javadoc.

Related

How to know iphone auto sending sms?

programmatically send SMS on the iPhone with out show MFMessageComposeViewController? It's possible? b/c I want to konw when's my phone send sms. I don't want my phone auto sending SMS.
If it's possible, how to know? How to catch that event?
In theory (and assuming the phone is not jailbroken), you cannot send an SMS without user intervention. If sending SMS messages via the API, the user will see the message-compose view controller.
That said, I suppose an app could "bypass" this by sending an HTML request to a third-party SMS gateway (in other words, the iphone is not actually sending the text message, but an external server is).
It's possible, but not using the SMS capability provided by the phone. An app author wanting to send SMS without the usual UI would have to purchase capacity from some third party provider (search for 'SMS provider' to find many such providers). Messages sent that way would cost the app developer money, which is as powerful a disincentive as you can find. They also wouldn't be identified with you.

How to send via my iphone application a planned emails and without launching the email application?

I know how to send email from my application by launching the iPhone Mail application, then return to my app. But I have two concerns:
1 / My first concern is how my application can send emails without opening the mail application?
So I will inform the user that the email has been sent successfully or failure on failure of transmission.
2 / My second concern is to make sending mail programmed (in scheduled task) as in the case of UILocalNotification.
I have not found a solution, I try to avoid knowing the solution that uses open source classes for sending mail via SMTP, because I want my application uses the configuration of the iphone and mail ask the user to configure where the mail is not configured.
Thank you in advance for your help.
You can send mail from your app using MFMailComposeViewController.
http://developer.apple.com/library/ios/#documentation/MessageUI/Reference/MFMailComposeViewController_class/Reference/Reference.html
You can use MailCore or similar alternatives.
You cannot do that with your app in the background. It's not the same as UILocalNotification as it requires user's approval before the app can do anything about that notification.

What does "stalker status" mean in chat applications?

I have created an XMPP chat application for Android and iPhone. While testing the app in jwchat.org, users who are created from iPhone devices are shown as 'stalker', and Android usernames are shown as online / offline. What does 'stalker' mean? Because of this, messages are sent and received from Android to iPhone, but iPhone devices' messages are not recieved by Android devices. Can anyone please help me?
"Stalker" is an unfortunate term that is embedded in the user interface of your client, not a standard part of the protocol. It likely refers to people who are in your roster as type="from", which indicates that they are subscribed to your presence but you are not subscribed to their presence. If you want to change this state, send them:
<presence type='subscribe' to='stalker#example.com'/>
Once they accept with:
<presence type='subscribed' to='you#example.com'/>
You should have each other in the type="both" state on one anothers' rosters.
It sounds like a presence problem on the iPhone app -- that it is successfully logging in/authenticating to the xmpp server, but then failing to send an xmpp presence stanza.
Do you have any traces of the xmpp communication?

How to Send sms from ipod?

Hi i want to send sms from ipod and also i will check whether it is being recieved by receiver (user) or not ?
Is this possible ?
Thanks in advance....
If by "iPod", you mean "iPod Touch", this is a very easy thing to do. You can use AOL Instant Messenger to send an SMS to a phone number in the form +18885551212. Or you can do the same from iChat.
Also, see the application "Fring" for a great messaging / voip / SMS aggregator.
No*, and no.
*You can use Wi-Fi to connect to an external SMS gateway, but you'll almost certainly have to pay for it.
You can also use an app called "TextFree" on an ipod touch to send or receive text messages.

Sending and receiving sms in backend of iPhone

I am new to iPhone application development. In the application that I am developing for iPhone there is a module which sends the sms without knowing to the user to my sms server and gets the response and displays the result. Is there any way to send and receive sms message in app?
Thanks in advance.
You should use data instead of SMS.
SMS are not a way to send information between a client and a server, but Internet is. And by using data, you also get a much more reliable transfer protocol (SMS aren't).
You shouldn't send SMS without the agreement of your users, because it can become really costly. Imagine you have a user on vacation in another country, and think that your app is using wifi, while it is using SMS. This user will be really mad when he will get is cellphone bill.
So even if you can do it, I think you shouldn't. And if you really need to do this, be sure that it is really clear to the user that your app is going to send SMS from his phone (with the charge of a normal SMS).
This is not possible with the iPhone SDK as it stands. It's probably not possible with any mobile platform without the user knowing about it as it's an obvious security hole.
I am also working on GPS-based application and I can have the device stop sending SMS back to the user every time the user send an SMS command. I think as long as the SMS is sent, it should be fine.
If the user wants to see the status of the device, then I might have to establish communication between my server and the device via TCP/UDP and have the iPhone app "parse" the information and display the status. Perhaps the best way is to have the server respond to the iPhone app saying "The device received your SMS command" and display it on the app so that the user knows his/her SMS were sent.
But yes, if we could get the location via SMS, then I could send those coordinates to the Google Maps app in the iPhone itself and it would display it for you.
I am the author of an App on Android which does this, called ImHerePlus. Check it out and see if it helps.