How do msn like apps work in iPhone? - iphone

How is the msn messenger app developed? What I want to know is how does the app gets ti know that a new message is received, even while running in the background. Please refer any code snippets or tutorial.
Many thanks in advance.

Probably with push notification.
See Local and Push Notification Programming Guide

Related

How to setup notifications in flutter application?

I was wondering if Flutter has the ability to generate push notifications from within the app. If so is there a code example of this?
Description:
An event occurs on the flutter app such as a button being clicked or an if statement being triggered, I want a push notification sent to the user.
The app should also always be running in the background, is this possible? If so can you provide me a link with an example of this implementation.
Thanks in advance for all the help!
I have looked on google but I haven't been able to find a lot of information regarding these two topics.
Being an iOS engineer, I'd say that you actually want local notifications. Push notifications are usually being sent by a server.
You could check how it's usually done on iOS natively: developer.apple.com.

Send event between iPhones

I want to create a social interaction application which sends an event to each other. For example, if user1 shakes the phone, user2 will be notified in real-time. Could you help me out where to start?
I am working in iOS7 using Xcode 5.0
You can use Bluetooth or Bump or something self implemented.
Try search for a GameKit tutorial (Bluetooth) or visit Bump repo
I found out that Push Notifications provide a solution in this regard. The following tutorial was very helpful.
http://www.raywenderlich.com/32960/
I followed the tutorial and I could implement my application!

background process in iphone sdk?

I want to do local push Notification (giving alert) when the user
comes in particular locations(in range).is it possible to do it? any example and tutorial please?
I hope it would help : http://iphonesdkdev.blogspot.com/2010/04/local-push-notification-sample-code-os.html
and you can search for pushmebaby for testing push notification in iPhone.

apple push notification review

I am implementing APN's and want to release without switching it on yet..
So the app will happily receive them. but we will choose not to send them until later.
My question is, as when we want to send notifications is in our control, do apple care about this when reviewing the app.
I thinking not, maybe they send a test notification to the device to prove it works? but if anyone has any experience in dealing with this any info would be much appreciated.
Thanks.
Apple does not test the notifications during the review.
They doesn't register to notifications at the first launch of apps.

Implementing sms push in iphone

Is it possible to invoke an application on reception of an sms. I have created a sample application and it need to be launched when the iphone recieves a particular message. Is it possible to implement this in iphone. If possible, which way shall i do that... pls help...
In short, no.
In the long answer, I believe with version 3.0 you can have your app subscribe to Apple's push notification service. Meaning that you can have your app answer to a notification from Apple that you send. Not quite SMS, but it accomplishes the same thing.
Try this:
http://developer.apple.com/iphone/library/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Introduction/Introduction.html