Start a new topic

Example / Sample on how to use Wikitude Phonegap plugin API with AngularJS

Example / Sample on how to use Wikitude Phonegap plugin API with AngularJS


Hello,

Are there any examples (or sample implementations) on how to use WIKITUDE Phonegap plugin API with Angularjs framework? I've tried to implement an angularjs custom factory - '$wikitude' that basically tells to cordova about wikitude-plugin and loads the ARworld. Implementation is working fine and able to see camera view once the world is loaded, but there is a warning message on the log complaining about threads.

THREAD WARNING: exec() call to WikitudePlugin.isDeviceSupported blocked the main thread for 76ms. Plugin should use CordovaInterface.getThreadPool()

Basically I'm trying to built an app using following combinations -

 phonegap + angularjs + wikitude phonegap plugin.

- Thank you

Hi Ratnakar,

Unfortunately we had no experience with a custom AngularJS implementation of our PhoneGap plugin.
I created a ticket to resolve your warning in our Plugin, you may meanwhile adjust the WikitudePlugin.java manually as described in this blog. Affected lines are around #190.

Kind regards,
Andreas
Login or Signup to post a comment