> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PFPushNotificationsServerSendPushNotificationAsync

> Reference for PFPushNotificationsServerSendPushNotificationAsync, a PlayFab Services C API function that sends a push notification to a specific user.

Sends an iOS/Android Push Notification to a specific user, if that user's device has been configured for Push Notifications in PlayFab. If a user has linked both Android and iOS devices, both will be notified.

## Syntax

```cpp theme={null}
HRESULT PFPushNotificationsServerSendPushNotificationAsync(  
    PFEntityHandle titleEntityHandle,  
    const PFPushNotificationsSendPushNotificationRequest* request,  
    XAsyncBlock* async  
)  
```

### Parameters

**`titleEntityHandle`**   PFEntityHandle

PFEntityHandle for a title Entity obtained using PFAuthenticationGetEntityWithSecretKeyAsync.

**`request`**   [PFPushNotificationsSendPushNotificationRequest\*](/services/playfab/api-references/c/pfpushnotificationstypes/structs/pfpushnotificationssendpushnotificationrequest)

Populated request object.

**`async`**   XAsyncBlock\*<br />*Inout*

XAsyncBlock for the async operation.

### Return value

Type: HRESULT

Result code for this API operation.

## Remarks

This API is available on Windows, Linux, and macOS. Call XAsyncGetStatus to get the status of the operation. If the service call is unsuccessful, the async result will be E\_PF\_PUSH\_NOT\_ENABLED\_FOR\_ACCOUNT, E\_PF\_PUSH\_SERVICE\_ERROR or any of the global PlayFab Service errors. See doc page "Handling PlayFab Errors" for more details on error handling.

## Requirements

**Header:** PFPushNotifications.h

## See also

[PFPushNotifications members](/services/playfab/api-references/c/pfpushnotifications/pfpushnotifications_members)


## Related topics

- [Services C API overview - PFPushNotifications.h](/services/playfab/api-references/c/pfpushnotifications/pfpushnotifications_members.md)
- [ServerSendPushNotificationFromTemplateAsync](/services/playfab/api-references/c/pfpushnotifications/functions/pfpushnotificationsserversendpushnotificationfromtemplateasync.md)
- [PFPushNotificationsSendPushNotificationRequest](/services/playfab/api-references/c/pfpushnotificationstypes/structs/pfpushnotificationssendpushnotificationrequest.md)
- [PFPushNotificationsSendPushNotificationFromTemplateRequest](/services/playfab/api-references/c/pfpushnotificationstypes/structs/pfpushnotificationssendpushnotificationfromtemplaterequest.md)
- [PFPlatformSpecificClientRegisterForIOSPushNotificationAsync](/services/playfab/api-references/c/pfplatformspecific/functions/pfplatformspecificclientregisterforiospushnotificationasync.md)
