Wikitude / wikitude-cordova-plugin

Wikitude's Augmented Reality Plugin for Cordova - working together with the Wikitude SDK library for Android and iOS. Provides image recognition and tracking, geo-based augmente reality and 3D rendering and animations in an augmented reality scene
https://www.wikitude.com
Other
199 stars 181 forks source link

WikitudePlugin.js missing cordova.define #111

Closed jdart closed 8 years ago

jdart commented 8 years ago

In the latest release (5.2.0-3.3.0) WikitudePlugin.js seems to be missing an essential bit to make it work:

At the beginning:

cordova.define("com.wikitude.phonegap.WikitudePlugin.WikitudePlugin", function(require, exports, module) { And at the end });

Maybe it's a new cordova convention to omit it, but in my case I had to hack up that file.

AndreasSchacherbauerWikitude commented 8 years ago

Are you installing our plugin with Plugman or the cordova command line tool? These lines should be added by those tools.

jdart commented 8 years ago

I am using plugman, i got things working, the problem was with a cordova hook causing an exception and preventing the plugin from being installed completely.