---
schema_version: "1"
id: 5e6f2ef19db985d52d3475d1887b2f9a74e3a33804dafc5079846d9e2ec1d4aa
title: PushNotificationPayload Methods
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_Messaging_PushNotificationPayload_methods.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_Messaging_PushNotificationPayload_methods.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 2037b3b2427fec3bde0733b0b61bc3de27e688f8012e7c7592299486a6b1f143
---
# PushNotificationPayload Methods

The following are the methods for PushNotificationPayload. All are global static methods.

- **[apple(alert, sound, badgeCount, userData)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_Messaging_PushNotificationPayload_apple.htm)**  
    Helper method that creates a valid Apple payload from the specified arguments.
- **[apple(alertBody, actionLocKey, locKey, locArgs, launchImage, sound, badgeCount, userData)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_Messaging_PushNotificationPayload_apple_2.htm)**  
    Helper method that creates a valid Apple payload from the specified arguments.