- application
- Reference to the UIApplication that invoked this delegate method.
- userInfo
- A dictionary whose "aps" key contains information related to the notification
The userInfo dictionary will have a key aps that will return another Foundation.NSDictionary. That dictionary may include the following keys:
Key | Type | Description |
---|---|---|
alert | String or Foundation.NSDictionary | If the value for the alert key is a string, that string will be the text of an alert with two buttons: "Close" and "View". If the application user choose "View", the application will launch. If the value is a Foundation.NSDictionary, it will contain a series of keys relating to localization. |
badge | Integer | The number to display on the badge of the app icon. If 0, the badge will be removed. If null, the badge should not change. |
sound | String | The name of a sound file in the app bundle. If the file doesn't exist or the value is "default", the default alert sound will be played. |
content-available | Integer | A value of 1 indicates that new content is available. This is intended for Newsstand apps and background content downloads. |