Hi,
did you add the Wikitude plugin to your Cordova project? The error message seems to me to communicate that it's missing. I'd expect the error to be resolved when you add the Wikitude plugin, same way the Cordova file plugin fixed the access to the `applicationDirectory` field.
- Daniel
Hi,
Thakn you for your response, yes I did add the wikitude plugin, and it was still giving me this error. I managed to fix it by removing it and add it agin, then after a reboot, the error disapeared. But now I have an other error : "Uncaught TypeError: Cannot read property 'isDeviceSupported' of undefined", source: file:///android_asset/www/js/index.js (94). This error occurs whenever I click on one of list's items.
Hi,
`isDeviceSupported` is a function of the Wikitude plugin and I believe it's simply the first one being called, that's why you get this error. This still looks to me like the Wikitude plugin is not properly loaded. Could you check what `cordova.require("com.wikitude.phonegap.WikitudePlugin.WikitudePlugin");` returns in your app (line38)? It should not be undefined. If it is, something's still wrong.
- Daniel
Hi,
Ok I found out that my android version is to low for the wikitude plugin, I currently am trying to upgrade my android sdk. I ll give you some news about my progress once it's done
Hi,
So... all the errors happened beause of my android version which was too low. The wikitude plugin was marked as "installed" on visual studio even if the installation failed because of the android version...
Now that I upgraded it, everything works fine. I am sorry for the inconvenience.
Have a good day.
Antoine
A.brussiau
Hello, sorry to bother.
I have some problems with running the cordova sample app on my mobile, and I want to know if you can help me on this.
I tried different tutorials, like the one in the documentation(using the sample app in an already existing app), or this one : https://newhorizonsdubaidotcom.wordpress.com/2015/04/28/ar-app-with-wikitude-sdk-using-cordova-on-visual-studio-2013/ , without success.
To test the application, I am using two android phones : a Samsung j7 and a Samsung a5. So what happen is that whenever I try running the application on one of these devices, I can see the menu with every samples, but I get this error :
This error occurs at the loading of the app, and everytime I am tapping on a sample name in the menu, which cause the application to do nothing on the interaction.
But, if I add the cordova-plugin-file plugin, this error appear to be solved. As if it were not enough, a new error occurs at exactly the same actions as the previous one. Here is the error :
The said file is the same as in the sample Application (didn't touched anything on it).
What I did try was updating my cordova version, using the sample app in a newly created application, remove and add some plugins (cordova-plugin-file for instance).
For more information and as you can deduct by reading the previous lines, I am using Visual Studio 2015, and the tests are done on two physical devices : a Samsung J7 and a Samsung A5. I am currently using cordova 6.3.1
Again, sorry to bother with this, but I couldn't find any suitable solution yet.
Looking forward for you response.