Start a new topic

HTMLDrawable in Phonegap Plugin

HTMLDrawable in Phonegap Plugin


I'm developing an app with Phonegap. I'm trying to show a HTMLDrawable in MyWorld but it can't show. Probably I'm doing something wrong.

I've two html files, first one is HelloWorld.html included in PhonegaPlugin folder but I modified it and add this:


geoLocation2 = new AR.GeoLocation(xxxxxxxxx, xxxxxxxx);


var poiHTMLdrawable = new AR.HtmlDrawable({uri:"world/div.html"}, 4, {viewportWidth: 512, scale:1, updateRate:AR.HtmlDrawable.UPDATE_RATE.STATIC});



var geoObject = new AR.GeoObject(geoLocation, {drawables: {cam: poiHTMLdrawable}});


and div.html is:




<meta name="viewport" content="target-densitydpi=device-dpi, width = 512, user-scalable = 0" />

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

<title>My ARchitect World</title>

<style type="text/css">

BODY.custom { margin: 0; background-color: #00000000; width: 512px;}



<body class="custom">

<div>TEST ME!</div>



So, I try to use ADE.js but it can't show. What I'm doing wrong?


Thank you very much!


HTMLDrawables seems not work in Phonegap. I have the same problem and after many hours i have tried to execute my project in ARchitect VIwer and in this way it works so i conclude that is a phonegap's problem. Someone knows a solution?


Hi Carlo,

we'll publish a PhoneGap-plugin update next week which then supports latest Wikitude-sdk and PhoneGap 2.4.

Please let me know if you have the issue still after next week's update (on github).
Also ensure to use very latest Wikitude-SDK version 1.2.1 in the meantime.

Kind regards,
Login or Signup to post a comment