At the moment we're setting up a new and much better forum for you, so we can provide even better support! This is why this forum is in ‘read-only' mode for as long as we're migrating the content.
Please visit our brand new forum at https://support.wikitude.com to report your issues.
Should you wait for an urgent answer, please contact us via forum@wikitude.com (make sure to include the title of your post, so we can help you more efficiently).
Thank you,
The Wikitude Team
« Back

External .wtc file on android

Combination View Flat View Tree View
Threads [ Previous | Next ]
External .wtc file on android
11/4/16 3:10 PM

Hi guys,
I'm using the Wikitude SDK on Android with javascript. I started with the template (WikitudeStudioAndroidAppTemplate) and I changed the project.js (the file with the json) in order to change the tracker.wtc because I'm using a tracker.wtc that I donwload from my server.

json example


The problem is that the wikitude cannot recognize the file because I think that he is looking for it in the assets folder and the file that I downloaded it's on /storage/emulated/0/Android/data/com.wikitude.wikitudestudioandroidapptemplate/files/Download/

There's any solution for this? I read that in unity there's no way to change that.

Please help me as soon as possible.

Best regards,


RE: External .wtc file on android
11/8/16 8:48 AM as a reply to Rafael Seara.
Hello Rafael,
You can load the wtc file from a custom url, either from the device, or from a remote server. You can specify the URL either in code or by ticking “Use custom URL” in the client tracker and writing the url there.
There is a sample showing how to load from a server called “Client Recognition - Runtime Tracker”, and there is documentation written here: http://www.wikitude.com/external/doc/documentation/latest/unity/clientrecognitionnative.html#runtime-tracker

RE: External .wtc file on android
11/8/16 10:03 AM as a reply to Eva Trianafillopoulou.

Hello Eva,

thank you. I did what you said and now instead of downloading the file I use the url from my server and it works very well.

Is it possible to do the same for the project.js? I also want to load the project file from my server because I will generate my own project.jss according to the Json structure from wikitude. The problem is that the project.js file is never called, only the variable inside.

thank you in advance. 


RE: External .wtc file on android
11/8/16 1:09 PM as a reply to Rafael Seara.

I did it. if someone is interested:


// JSON file describing the AR-experience for offline usage

var projectJSONOffline;

      url: 'myserver/jsonfile.json',
      success: function (result) {
      if (result.isOk == false) alert(result.message);

      //result string into json object
      var jsonObj = jQuery.parseJSON(result);

      projectJSONOffline = jsonObj;
      async: false