Start a new topic

Publishing of self hosted projects

Publishing of self hosted projects


Finally I found a solution. Basically what you need is a php that generates something like a JSON answer (code.php):

<?php
header('Content-type: application/vnd.wikitude.arl; charset=UTF-8');
header('Content-Disposition: inline; filename="code.arl"');
print ('{"url":"http://www.server.com/path-to-my/index.html","minSDK":"1.0","description":"Text","thumbnailUrl":"http://www.server.com/path-to-my/logo.png","name":"Project Name","id":"12345"}');
?>

And you need a Website with:

var ua = window.navigator.userAgent;
var iOS = ( ua.match(/(iPad|iPhone|iPod)/gi) ? true : false );
if (iOS) {
         window.location = 'arlink://http://www.server.com/path-to-my/code.php'";
} else {
         window.location = 'http://www.server.com/path-to-my/code.php'";
}

 

Hi,

The shortcode functionality is only availabe if you work with Studio - when you publish your own created experiences, then this is feature is not available.

I hope this helps. Should you need anything further, just let me know anytime.

Greetings

Nicola

Hi wikitude team!

I don't understand how to use the project link decribed in http://www.wikitude.com/external/doc/documentation/latest/studio/codelink.html .Basically what I want is an URL that makes smartphones install the Wikitude App or open my self hosted project within the app, if the app is already installed.

I have the Javascript-SDK files at www.myserver.com/myproject.
I can open the project in wikitude developer mody with launch via URL.
I also published it on http://www.wikitude.com/developer/tools/publish-in-wikitude and it can be found and opened in the Wikitude App search dialog.
But the developer key doesn't seem to work with http://code.wikitude.com/YOUR-SEARCH-CODE. I foud some dead links regarding this topic i.e. http://www.wikitude.com/products/wikitude-sdk/publish/ at Number 4. Somewhere I read in the forum, that code.wikitude.com only works with Wikidude Studio projects. But this is a really basic requirement! Can you provide a tutorial how a link, HTML- or PHP-page must look like to install the App and open a project in the app?

Please help! Thank you

 

Andras
Login or Signup to post a comment