Skip to main content
1-Visitor
March 12, 2021
Question

Integrate Vuforia Studio with external system without Thingworx

  • March 12, 2021
  • 1 reply
  • 2372 views

Hi,

 

I would like to integrate my company external system with Vuforia Studio through API.
From my research, Thingworx is necessary for that.

 

My questions is, can Vuforia Studio be integrated with custom API (e.g. from company server) without Thingworx.
I'm trying to retrieve data from the system through API by scanning bar/QR code.

 

Thanks.

1 reply

21-Topaz I
March 12, 2021

Hello @NA_nur ,

the ThingWorx server is always provided with the Experience Service and at least it is require for the work of the experience service (e.g. user accounts. ) So, you can decide to use object via the provide API but you can also not used.

You can use any other servers and Sever APIs so far there is no some conflict with the CORS  (Cross opening resource sharing) restriction buy you system   which will prohibit the access over different domains. ( is not Vuforia specific issue) But you can simple test your api if you can call the APIs for your server . For example, you can use the $https service or the fetch ().

Please, simple try if this works

NA_nur1-VisitorAuthor
1-Visitor
March 17, 2021

Hi @RolandRaytchev ,

 

Thank you for your reply.

 

I did a simple test using public API to fetch some data and display on label widget. It works well.

However, as you mentioned about CORS, I do have problem to fetch data using my company API. It will return CORS error.

 

How can I work on this?

 

Below is my code and error returned.

 

NA_9752193_0-1615966816301.png

NA_9752193_1-1615967089044.png

 

Thanks.

 

21-Topaz I
March 18, 2021

Hi @NA_nur ,

CORS setting is something which is not related to Vuforia Studio but more to browser functionality.

- You can check if the behavior is different when you use the mobile platform. The chrome is only test system and the mobile platform could have sometimes different behavior

Some more detailed information explaining CORS  - possible reason and  workaround could be found there:

https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSMissingAllowOrigin

and 

https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS

 

Another point is : you mentioned that the normal API was working. What does it mean? 

If a simple fetch request is working , in this case you can use some simple web server as proxy . The  web.server e.g. node.js server – could be used to translate your API to more simple request where only the information is passed. If such solution is possible depends more of the details on the specific application case