mazllia / Social-Networking-Notes

NCTU CS Project (2012 Fall-2013 Spring)
0 stars 0 forks source link

Alert feature #10

Open mazllia opened 10 years ago

mazllia commented 10 years ago

UINotifications

2 notifications are provided:

  1. Local notifications are scheduled by an application and delivered on the same device.
  2. Push notifications, also known as remote notifications, are sent by your server to the Apple Push Notification service, which pushes the notification to devices.

    Different in implement

Networking & Internet/Guides/About Local Notifications and Push Notifications

If your app is frontmost, the application:didReceiveRemoteNotification: or application:didReceiveLocalNotification: method is called on its app delegate If your app is not frontmost or not running, you handle the notifications by checking the options dictionary passed to the application:didFinishLaunchingWithOptions: of your app delegate for either the UIApplicationLaunchOptionsLocalNotificationKey or UIApplicationLaunchOptionsRemoteNotificationKey key. For more details about handling notifications, see “Scheduling, Registering, and Handling Notifications.”