---
schema_version: "1"
id: ba6083dd766f733368e2ce7d3375c79ca5ef13a52bc5288b399c2a04ebea1a44
title: PushNotificationPayload Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_classes_push_notification_payload.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_classes_push_notification_payload.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 9408b520ab9fda7d6b0664ec0b10e04f7c0c933c39bd8a42510b7b0581310c02
description: Contains methods to create the notification message payload for an Apple device.
---
# PushNotificationPayload Class

Contains methods to create the notification message payload for an Apple device.

## Namespace

[Messaging](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_Messaging.htm "The Messaging namespace provides classes and methods for Salesforce notifications and email functionality.")

## Usage

Apple has specific requirements for the notification payload. and this class has helper methods to create the payload. For more information on Apple’s payload parameters, search for “Apple Push Notification Service” at [https://developer.apple.com/library/mac/documentation/](https://developer.apple.com/library/mac/documentation/ "HTML (New Window)").

## Example

See the [Push Notification Example](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_classes_push_notification.htm#push_notification_example_code).

- **[PushNotificationPayload Methods](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_Messaging_PushNotificationPayload_methods.htm)**