I
get “Refused to load the script 'https://www.wikitude.com/libs/architect.js'
because it violates the following Content Security Policy directive:
"script-src 'self' 'unsafe-inline' 'unsafe-eval'". Note that
'script-src-elem' was not explicitly set, so 'script-src' is used as a
fallback.”
I get “architect.js:1 Failed to load resource: the server responded with a status of
404 ()”.
When
the app loads, I see a white screen and an orange triangle in right bottom of
the screen. Click on white space causes “TypeError:
AR.js.click.executePlatformClick is not a function”.
Here is my entire HTML code (taken from one of the examples):
<!-- popup displayed when button clicked --> <div data-role="popup" id="popupInfo" class="ui-content" data-theme="e" style="max-width:350px;"> <p style="text-align:right;" id="status-message">Trying to find out where you are</p> </div>
</div>
</div>
And these are the plugins that I am using:
I
also tried the "Automatic Setup of Sample App". It would install after I
changed how it gets the plugin in the generator script (I changed the
Git url to $BUILD_PROGRAM plugin add
com.wikitude.phonegap.wikitudeplugin@8.0.0).
The app
does build, but even after I added my licence key in Wikitude.js, on
every example I open "License key missing" is shown. I also get the
Failed to load resource: the server responded with a status of 404 ()
for architect.js and AR.js.click.executePlatformClick is not a function
from ade.js.
Do you have any suggestions as to what could be wrong and how I can resolve my problems?
Best regards,
Rosa
1 Comment
Wikitude Technical Support
said
over 4 years ago
Good morning Rosa,
if the watermark is being rendered, you can't be far off. Have you added your personal license key or a trial license key?
Rosa Potrebuješ
Greetings,
I am trying to add an existing project from GitHub to my existing application.
I have some problems achieving this.
I have downloaded architect.js file. If I use this downloaded file, i get the following error:
1. If I use https://www.wikitude.com/libs/architect.js and meta tag
“<meta http-equiv="Content-Security-Policy" content="default-src * gap://ready file:; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'">”
I get “Refused to load the script 'https://www.wikitude.com/libs/architect.js' because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-inline' 'unsafe-eval'". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.”
1. If I use https://www.wikitude.com/libs/architect.js and meta tag
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
I get “architect.js:1 Failed to load resource: the server responded with a status of 404 ()”.
When the app loads, I see a white screen and an orange triangle in right bottom of the screen. Click on white space causes “TypeError: AR.js.click.executePlatformClick is not a function”.
Here is my entire HTML code (taken from one of the examples):
And these are the plugins that I am using:
I also tried the "Automatic Setup of Sample App". It would install after I changed how it gets the plugin in the generator script (I changed the Git url to $BUILD_PROGRAM plugin add com.wikitude.phonegap.wikitudeplugin@8.0.0).
The app does build, but even after I added my licence key in Wikitude.js, on every example I open "License key missing" is shown. I also get the Failed to load resource: the server responded with a status of 404 () for architect.js and AR.js.click.executePlatformClick is not a function from ade.js.
Do you have any suggestions as to what could be wrong and how I can resolve my problems?
Best regards,
Rosa