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

# PFPlatformSpecificClientRegisterForIOSPushNotificationAsync

> 註冊 iOS 裝置以接收推播通知

註冊 iOS 裝置以接收推播通知

## 語法

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

### 參數

**`entityHandle`**   PFEntityHandle

用於驗證的 PFEntityHandle。

**`request`**   [PFPlatformSpecificRegisterForIOSPushNotificationRequest\*](/services/playfab/api-references/c/pfplatformspecifictypes/structs/pfplatformspecificregisterforiospushnotificationrequest)

已填入的要求物件。

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

用於非同步作業的 XAsyncBlock。

### 傳回值

類型：HRESULT

此 API 作業的結果代碼。

## 備註

此 API 適用於 iOS。如需設定及傳送推播通知的步驟，請參閱[推播通知快速入門](/services/playfab/live-service-management/game-configuration/title-communications/push-notifications/quickstart)。呼叫 XAsyncGetStatus 以取得作業的狀態。如果服務呼叫失敗，非同步結果將為 E\_PF\_NO\_PUSH\_NOTIFICATION\_ARN\_FOR\_TITLE、E\_PF\_PUSH\_SERVICE\_ERROR 或任何全域 PlayFab 服務錯誤。如需錯誤處理的詳細資訊，請參閱文件頁面「Handling PlayFab Errors」。

## 需求

**標頭：** PFPlatformSpecific.h

## 另請參閱

[PFPlatformSpecific 成員](/services/playfab/api-references/c/pfplatformspecific/pfplatformspecific_members)


## Related topics

- [服務 C API 概觀 - PFPlatformSpecific.h](/zh-TW/services/playfab/api-references/c/pfplatformspecific/pfplatformspecific_members.md)
- [PFPlatformSpecificRegisterForIOSPushNotificationRequest](/zh-TW/services/playfab/api-references/c/pfplatformspecifictypes/structs/pfplatformspecificregisterforiospushnotificationrequest.md)
- [PFPlatformSpecificClientAndroidDevicePushNotificationRegistrationAsync](/zh-TW/services/playfab/api-references/c/pfplatformspecific/functions/pfplatformspecificclientandroiddevicepushnotificationregistrationasync.md)
- [服務 C API 概觀 - PFPlatformSpecificTypes.h](/zh-TW/services/playfab/api-references/c/pfplatformspecifictypes/pfplatformspecifictypes_members.md)
- [PFPlatformSpecificAndroidDevicePushNotificationRegistrationRequest](/zh-TW/services/playfab/api-references/c/pfplatformspecifictypes/structs/pfplatformspecificandroiddevicepushnotificationregistrationrequest.md)
