简体   繁体   English

IBM Worklight:推送通知设备ID

[英]IBM Worklight: Push Notification Device ID

There is a field called "device" in deviceSubscription. deviceSubscription中有一个名为“device”的字段。 I assume that it is corresponding to the device ID for the device. 我假设它对应于设备的设备ID。 And this value is used as a parameter in WL.Server.notifyDevice(userSubscription, device, options) to submit notification for a specific device for a user. 此值用作WL.Server.notifyDevice(userSubscription,device,options)中的参数,以便为用户提交特定设备的通知。

However, when I re-install the apps again, the value in deviceSubscription.device is changed. 但是,当我再次重新安装应用程序时,deviceSubscription.device中的值会更改。 Therefore, there are different device ID subscribing to an event source although they are actually the same device. 因此,订阅事件源的设备ID不同,尽管它们实际上是同一设备。

May I know where deviceSubscription.device comes from? 我可以知道deviceSubscription.device来自哪里吗?

Thanks a lot. 非常感谢。

The name "Device ID" is indeed confusing. 名称“设备ID”确实令人困惑。 It does not reference the physical device, rather it references to the application. 它不引用物理设备,而是引用应用程序。 Thus when you re-install the application, you get a different value for it (it is generated by the client-side framework). 因此,当您重新安装应用程序时,您将获得不同的值(它由客户端框架生成)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM