---
schema_version: "1"
id: 9fe78fed1692e5f467de01f847646ae8e98cb6b8194cf1228689ed5f03f096b1
title: send(application, users)
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_Messaging_PushNotification_send.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_Messaging_PushNotification_send.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 9d1b8174a090690bfb9e5df6d2ce374e2b1b015dd32f14007786cab9d266e4fb
description: Sends a push notification message to the specified users.
---
# send(application, users)

Sends a push notification message to the specified users.

## Signature

public void send(String application, Set<String\> users)

## Parameters

- **application**:
    
    Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")
    
    The connected app API name. This corresponds to the mobile client app the notification should be sent to.
- **users**:
    
    Type: [Set](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_set.htm#apex_methods_system_set "Represents a collection of unique elements with no duplicate values.")
    
    A set of user IDs that correspond to the users the notification should be sent to.

## 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).