iphone - can i implement an app that have 2 types of notification (Remote and newsstand notification) -


i need know if can implement app can handle 2 types of notifications

thanks

both remote , local notifications enable application inform users has (information) them - in form of notification (it message, impending calendar event, or new data on remote server), when application isn't running in foreground.

when presented operating system, local , push notifications , sound same. can display alert message or can badge application icon. can play sound when alert or badge number shown.

the difference between 2 are:

  • local notifications scheduled application , delivered ios on same device. local notifications available in ios only.
  • push notifications, known remote notifications, sent application’s remote server (its provider) apple push notification service, pushes notification devices on application installed. push notifications available in both ios and, beginning mac os x v10.7 (lion), mac os x.

going question, answer yes.

as per discussed in apple documentation:

to have ios deliver local notification @ later time, application creates uilocalnotification object, assigns delivery date , time, specifies presentation details, , schedules it. receive push notifications, application must register receive notifications , pass provider device token gets operating system.

when operating system delivers local notification (ios only) or push notification (ios or mac os x) , target application not running in foreground, presents notification (alert, icon badge number, sound). if there notification alert , user taps or clicks action button (or moves action slider), application launches , calls method pass in local-notification object or remote-notification payload. if application running in foreground when notification delivered, application delegate receives local or push notification.

for further understanding, read more local , push notifications.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -