Start a new topic

Need help getting Cordova plugin to run with Ionic

Need help getting Cordova plugin to run with Ionic


I am trying to get the Wikitude Cordova plugin to work with a blank Ionic project. But not getting a lot of success trying to link all the javascript files etc.

So these are the steps i did:

create a new ionic project

installed ngCordova

added the iOS and android platform

did a build of them both

installed the Wikitdue Cordova plugin

added my license key to the following file WikitudePlugin.js

added index.js to the main index.html file in the www folder

created in www a folder called views and in there I created another folder called camera

in the camera folder I created a js folder and place the js files (marker.js & fromwebservice.js), this folder also contains the following files: cameraview.html and poidetail.html

In the cameraview.html file I call upon the wikitude architect like so:

<ion-view view-title="Pub Stop">
<ion-content class="background">
<a href="javascript:app.loadARchitectWorld();">Camera</a>

And in the poidetail.html I place the following code:

<ion-view view-title="Detail">
<ion-content class="background">




In the index.js file I adjusted the path of the url to the following ->  "path": "views/camera/camveraview.html"

My file structure looks like this:


When I run it on the phone via Ionic View nothing happens, so I run it in the browser and I get the following error:


Can somebody help me to link all the files correctly so I can get started with this project. Here is a dropbox link where I share the www folder



Hi, i made a ngCordova wrapper for the cordova plugin you can download it from here

And here is how to configure the wikitud key and initialize the plugin (in Ionic)
Login or Signup to post a comment