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 个字符密钥标识符(儿童)密钥。 指定是否使用令牌身份验证模式。 |
| 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 个字符密钥标识符(儿童)密钥。 指定是否使用令牌身份验证模式。
keyId?: string
属性值
string
thumbprint
APNS 证书指纹。 指定是否使用证书身份验证模式。
thumbprint?: string
属性值
string
token
提供程序身份验证令牌,通过开发人员帐户获取。 指定是否使用令牌身份验证模式。
token?: string
属性值
string