How to get notification from server in iphone - iphone

For my iphone game i need to implement a notification service from the server.
That is suppose 5 person playing the game(online game) then if any one of them made a movement
then that move must send to all his buddies. How can i achieve this. Is there any server programming needed. I'm not meaning the Apple push notification.
Can anybody help me

I don't think push notifications is the best way to do that. You should think about a permanent connection.
If you still want to make push notifications, the Apple doc is really clear
http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Introduction/Introduction.html

I suggest looking into Apple's GameKit framework.

Related

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!

Listen for iphone notifications?

This maybe not possible, but is there a way to "listen" for iphone notifications or check what kind of notifications have come in from within a app? Is there an API for this? Or does Apple not allow it?
yes you can. Look at NSNotification
Here you have Notification Programming Topics
if you're talking about push or local notification, no you can't.
these would be a massive security problem.
unless your talking about your own push notification specifically send to your application, check out UIApplicationDelegate

Using Remote Notifications In My Application

I am currently starting my way on developing iPhone applications, and I have recently encountered a problem which I could not find a proper answer to.
In my application, I want one iPhone to send a request and another, far iPhone respond to that request using an Alert View, almost like the way Game Center works when you invite someone to play with you.
Do I do that with Push Notifications? Some server? Or what?
Thanks ahead,
A Newbie Developer.
Not the simplest things to try and do when you are new - but have a look at GameKit.
There is a sample application called GKTap which shows how to hook up two iPhones.
Don't be fooled by the word Game. This framework makes it easy to set up communication between phones, even using Bluetooth.
It depends on what you mean by "far". If you mean in another room, but within Bluetooth range or on the same local network, then there is GameKit. If you mean on a different network, or a long distance away, then you are looking at needing to have a server that keeps track of the devices and the connections between the devices so you can use Push Notifications. If you are thinking of something like Words With Friends where it sends a message to another user to tell them it is their go, then you would need the server.

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.

iPod Touch to iPod Touch Messaging using Push Notification Service

Can I use the push notification to send the message from one iPod touch to another one? Is there any pointer information that I can read?
Thank you!
Marcelo
You can do this, but it's non-trivial. You can use UrbanAirship to send the notifications, but you'll still need some kind of intermediary server to actually figure out how to get two people each other's device tokens for sending.