pns.devices.register
注册推送设备
- 请求路由:
pns.devices.register- 交互模型:
Request Response- 访问限制: 无
请求
RSocket.rr({
"route" : "pns.devices.register",
"data" : {
"bundleId" : "com.aspiretop.com.cbv.driver",
"pushToken" : "18171adc0205686907e",
"deviceInfo" : "iOS:iPhone16,000000000-0000-0000-0000-000000000000"
}
});
请求参数
| 名称 | 类型 | 必须 | 说明 |
|---|---|---|---|
id | String | 是 | 设备标识 |
username | String | 否 | 关联用户 |
deviceInfo | String | 否 | 设备信息 |
extraProps | Object | 否 | 扩展属性 |
tenantId | String | 否 | 租户ID |
返回
注册成功的设备信息
{
"id" : "com.aspiretop.com.cbv.driver:18171adc0205686907e",
"pushToken" : "18171adc0205686907e",
"bundleId" : "com.aspiretop.com.cbv.driver",
"username" : "18900010001@mzd",
"deviceInfo" : "iOS:iPhone16,000000000-0000-0000-0000-000000000000",
"upDate" : "2024-05-30T01:51:25.375798Z",
"crData" : "2024-05-30T01:51:25.375798Z"
}
返回属性
| 名称 | 类型 | 说明 |
|---|---|---|
id | String | 设备标识 |
pushToken | String | 设备推送token |
bundleId | String | 应用bundleId |
username | String | 关联用户 |
deviceInfo | String | 设备信息 |
extraProps | Object | 扩展属性 |
tenantId | String | 租户ID |