Start a new topic

Alternative to Ti.API.info

Hi all,

I have discovered that the Ti.API.info() debugging message doesn't work inside Wikitude, on some occasions. E.g. it doesn't work inside 'onImageRecognized:'


Does anyone have an alternative?


    var pageOne = new AR.ImageTrackable(this.tracker, "*", 

    {

 

 // if the target is recognised

            onImageRecognized: function (target) 

 {

 

             Ti.API.info("test output"); //this doesn't work, and it should


  },



Eg, while all the other code is correct and working, the Ti.API.info command won't output to Titaniums console. Does anyone know why?

It's probably the debugging tool that I use most often.




Thanks,

MM

1 Comment

Good morning,



I'm afraid I don't know why the Ti.API.Info call does not work in the onImageRecognized callback. You could simply use JavaScript's Console.log function as an alternative. I don't think it will show up in the Titanium console. You will have to connect a browser to your device and check the log therein (Safari for iOS; Chrome for Android).



- Daniel


Login or Signup to post a comment