Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X
Hello
We searched to get platform or other information of connected device.
I found that I could get information through the navigator in JavaScript.
I created a service that runs navigator.request.
[context: com.thingworx.webservices.context.HttpExecutionContext@420f70fc] [message: Execution error in service script [Thing1 test]: ReferenceError: "navigator" is not defined.]
The above error occurs
What is the solution?
Please help me
thank
If you are searching for an entity, there are a few ways to go about.
1. if this is in the UI there are a lot of things you can do from Entity Picker to first presenting a list of the potential entities using something like ThingTemplates["Name Of Template"].QueryImplementingThings
2. In a service you can use the SearchFunctions or similarly QueryImplementingThings
You should try to avoid using 'composer specific' functions to search.
Hello
Thanks for the reply
I would like to create a service that checks the information (OS, browser, etc.) of the connected device (tablet, PC, smart phone)
it is not retrieving ThingWorx information.
I confirmed that it is possible through navigator.userAgent of JavaScript.
However, you can not use navigator in ThingWorx local (jacascript).
I am looking for a solution to this.
thank