0

I have a small but tricky question over apple push notification payload on iOS.

From what I know the push notification payload can have sound (length <= 30 seconds), text and badge. Now what I want with my iphone app is that the push notification sent by my provider (server) to this app on iPhone screen to constantly buzz at regular interval (say every 1 min) until user taps on the notification on screen (i.e. checks the message). Hence, the notification would play the sound constantly and stops when user taps and launch the app.

Is it feasible? How?

PS: Its an enterprise application and would not be deployed on App Store.

Thanks in advance.

user653662
  • 35
  • 3
  • 6

1 Answers1

-2

Yes, it is. This is how you could implement that:

  1. Register device for push notification
  2. Send out a push message with ref to a sound every 30-60 seconds
  3. Invalidate each message after 30-60 seconds, making room for the new one
  4. When user re-opens the app, register the app as re-opened to the server and stop sending out push notifications

I do not know how this would look in the notification center, but you can test and have a look :)

Paul Peelen
  • 10,073
  • 15
  • 85
  • 168
  • Thanks for response. So you mean we send new push notification with text and sound. And, then repeatedly send only sound ref notification until user opens the app. What if the device user "closes" the notification without "view" (tap on notification on iOS 5). On "close" of notification the provider (backend) will never come to know about the action hence we'll keep send the sound. Ideally, we would like the new notification itself to beep like a pager. – user653662 May 11 '12 at 06:34
  • My understanding of your post was that the user was required to open the application in order for the messages to stop. Otherwise one push noticiation is good enough, just repeat the sound (I believe that is possible). – Paul Peelen May 11 '12 at 09:18
  • Did I misunderstood your question? – Paul Peelen May 14 '12 at 07:19