ApnsCredential interface
NotificationHub ApnsCredential 的描述。
屬性
| apns |
APNS 憑證。 指定是否使用憑證驗證模式。 |
| app |
簽發者 (iss) 已註冊的宣告金鑰。 此值是 10 個字元的 TeamId,從您的開發人員帳戶取得。 指定是否使用令牌驗證模式。 |
| app |
應用程式或 BundleId 的名稱。 指定是否使用令牌驗證模式。 |
| certificate |
如果 APNS 憑證密碼存在,則為 。 |
| endpoint | 此認證的 APNS 端點。 如果使用憑證驗證模式和沙箱,請指定 『gateway.sandbox.push.apple.com』。 如果使用憑證驗證模式和生產環境,請指定 『gateway.push.apple.com』。 如果使用令牌驗證模式和沙箱,請指定 'https://api.development.push.apple.com:443/3/device'。 如果使用令牌驗證模式和生產環境,請指定 'https://api.push.apple.com:443/3/device'。 |
| key |
從開發人員帳戶取得的 10 個字元金鑰標識碼 (kid) 金鑰。 指定是否使用令牌驗證模式。 |
| thumbprint | APNS 憑證指紋。 指定是否使用憑證驗證模式。 |
| token | 提供者驗證令牌,透過您的開發人員帳戶取得。 指定是否使用令牌驗證模式。 |
屬性詳細資料
apnsCertificate
APNS 憑證。 指定是否使用憑證驗證模式。
apnsCertificate?: string
屬性值
string
appId
簽發者 (iss) 已註冊的宣告金鑰。 此值是 10 個字元的 TeamId,從您的開發人員帳戶取得。 指定是否使用令牌驗證模式。
appId?: string
屬性值
string
appName
應用程式或 BundleId 的名稱。 指定是否使用令牌驗證模式。
appName?: string
屬性值
string
certificateKey
如果 APNS 憑證密碼存在,則為 。
certificateKey?: string
屬性值
string
endpoint
此認證的 APNS 端點。 如果使用憑證驗證模式和沙箱,請指定 『gateway.sandbox.push.apple.com』。 如果使用憑證驗證模式和生產環境,請指定 『gateway.push.apple.com』。 如果使用令牌驗證模式和沙箱,請指定 'https://api.development.push.apple.com:443/3/device'。 如果使用令牌驗證模式和生產環境,請指定 'https://api.push.apple.com:443/3/device'。
endpoint?: string
屬性值
string
keyId
從開發人員帳戶取得的 10 個字元金鑰標識碼 (kid) 金鑰。 指定是否使用令牌驗證模式。
keyId?: string
屬性值
string
thumbprint
APNS 憑證指紋。 指定是否使用憑證驗證模式。
thumbprint?: string
屬性值
string
token
提供者驗證令牌,透過您的開發人員帳戶取得。 指定是否使用令牌驗證模式。
token?: string
屬性值
string