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

# PFPlatformSpecificClientRegisterForIOSPushNotificationAsync

> Registers the iOS device to receive push notifications

Registers the iOS device to receive push notifications

## Syntax

```cpp theme={null}
HRESULT PFPlatformSpecificClientRegisterForIOSPushNotificationAsync(  
    PFEntityHandle entityHandle,  
    const PFPlatformSpecificRegisterForIOSPushNotificationRequest* request,  
    XAsyncBlock* async  
)  
```

### Parameters

**`entityHandle`**   PFEntityHandle

PFEntityHandle to use for authentication.

**`request`**   [PFPlatformSpecificRegisterForIOSPushNotificationRequest\*](https://docs.xbox.com/services/playfab/api-references/c/pfplatformspecifictypes/structs/pfplatformspecificregisterforiospushnotificationrequest.md)

Populated request object.

**`async`**   XAsyncBlock\*\
*Inout*

XAsyncBlock for the async operation.

### Return value

Type: HRESULT

Result code for this API operation.

## Remarks

This API is available on iOS. The steps to configure and send Push Notifications is described in the PlayFab tutorials, here: [https://docs.microsoft.com/gaming/playfab/features/engagement/push-notifications/quickstart](https://docs.microsoft.com/gaming/playfab/features/engagement/push-notifications/quickstart). Call XAsyncGetStatus to get the status of the operation. If the service call is unsuccessful, the async result will be E\_PF\_NO\_PUSH\_NOTIFICATION\_ARN\_FOR\_TITLE, 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:** PFPlatformSpecific.h

## See also

[PFPlatformSpecific members](https://docs.xbox.com/services/playfab/api-references/c/pfplatformspecific/pfplatformspecific_members.md)


## Related topics

- [Services C API overview - PFPlatformSpecific.h](https://docs.xbox.com/services/playfab/api-references/c/pfplatformspecific/pfplatformspecific_members.md)
- [PFPlatformSpecificClientAndroidDevicePushNotificationRegistrationAsync](https://docs.xbox.com/services/playfab/api-references/c/pfplatformspecific/functions/pfplatformspecificclientandroiddevicepushnotificationregistrationasync.md)
- [PFPlatformSpecificRegisterForIOSPushNotificationRequest](https://docs.xbox.com/services/playfab/api-references/c/pfplatformspecifictypes/structs/pfplatformspecificregisterforiospushnotificationrequest.md)
- [Register For IOS Push Notification](https://docs.xbox.com/api-reference/platform-specific-methods/register-for-ios-push-notification.md)
- [Services C API overview - PFPlatformSpecificTypes.h](https://docs.xbox.com/services/playfab/api-references/c/pfplatformspecifictypes/pfplatformspecifictypes_members.md)
