I am using Wikitude 8.1 with Cordova 8.x. I have the default Cordova-setup with only the Wikitude plugin installed. I tried to run the Example https://github.com/Wikitude/wikitude-cordova-plugin-samples/tree/master/SampleAppResources/world/01_ImageTracking_1_ImageOnTarget from githu, but when I try it on my Android 7 phone, it only shows Loading.
I was searching for a while now and found out that in the imageontarget.js this.targetCollectionResource is never loaded, which is why the imageTracker also never calls its onTargetsLoaded callback. When I debug it with chome debugger I can see that the loading property of the targetCollectionResource throws an error:
"TypeError: AR.i.getBridgeObject(...).loading is not a function
glad to hear it's working now. Do you happen to have the error output for the regular windows command line (without Git bash)? I'd be interested to see what the problem is there.
Maybe you could update the documentation here: https://www.wikitude.com/external/doc/documentation/latest/phonegap/samples.html
Thank you for your hint.
I took the samples from the sdk and run the installation script instead of just copying the code I needed.
First the script wouldn't run on windows, but with using a Git bash it worked fine. After running the update script the example worked too and I was also able to edit it and got it still working.
Unfortunatly I couldn't find the difference to the Github code, so I'm not able to tell where the problem were. But I think it might be some configuration.
But anyway, now it works for me, so thank you!