Me and my college are using wikitude to make an application. We wanted to obtain data from a webservice to use in our project ( with native data screen )
We are building the application with Xamarin, but we are new to this.
Can anybody help us with this problem ?
M
Martin Lechner
said
over 8 years ago
Hi,
Since the request to your server is done using JavaScript, you need to ensure you set the right headers in your server to allow Cross-Domain Scripting.
When you check the developer console in your browser when you request your URL through AJAX (*not* the browser address bar) for example in Chrome, you will see the following error:
"XMLHttpRequest cannot load http://www.smartbustracking.be/json/. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '' is therefore not allowed access."
There are several posts already on our Forum dealing with this issue, and how to fix it. An example is this post:
We now see, when we run the application that it loads ( in our case ) 5 pois but it's not displayed on the screen.
Do you have any idea what's the problem ?
Thanks again
M
Martin Lechner
said
over 8 years ago
Hi,
I don't see issues with this configuration. I suggest you do some debugging to see whether the JavaScript is executed correctly, and if the objects are generated successfully. I urge you to use the ADE for these debugging-steps.
kimberly gysbrechts-segers