Hi,
Is there anyone able to help with this issue? I am using this as part of a University project and need to resolve this issue quickly to stay on schedule.
Good morning David,
I believe
<script src="https://www.wikitude.com/libs/architect.js"></script>
should be in the HTML file of your actual AR world, not in the HTML file of your Cordova application. Failing to find the architect.js file would explain the AR object not being available.
Here is one such AR world HTML file as a reference.
- Daniel
Hi Daniel,
Thanks for the reply.
I have tried placing the link in my AR world an I am still getting the same issue. Am I doing something wrong with JS code as to why it not picking it up?
David
Hi David,
I'm afraid I won't have the time to take thorough look at your code before Monday. What I can provide, for now, is the relevant files of an application I know to be working correctly. Maybe comparing your code thereto could help you find out what's wrong.
I attached the files to this post.
I could image that the following line is what you're missing in your HTML file.
<meta http-equiv="Content-Security-Policy" content="default-src * gap://ready file:; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'">
- Daniel
Hi Daniel,
Thanks for the files, I will have a look at them and see if I can fix the issue. I have attached my code for you to look at in your own time. I will let you know if I solved my issue and look forward to hearing your response.
David Dryburgh
David Dryburgh
Hi,
I am following the guides from the wikitude cordova documentation. When I am running my application, I am getting an error when trying to load a AR object. The actual error code I get is:
[console.log] Error in Success callbackId: WikitudePlugin1329171891 : ReferenceError: AR is not defined
explore.html
`
<script src="https://www.wikitude.com/libs/architect.js"></script>
`
explore.js
`var app = {
};
app.initialize();`