cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gonzalez"<>
Subject Re: Installing mobile spec for testing API plugins only
Date Mon, 17 Mar 2014 22:21:35 GMT
Hi Piotr, I think that you need to add an updated js file for your platform  
as well, you can find it under cordova-js repository, there you can find the  
cordova-firefoxOS.js that you need to rename it to cordova.js and transfer  
to the project.

Or if you are using Mac Os, you can run the as well.


-----Original message-----
From: Piotr Zalewa <>
To: "" <>
Sent: Mon, 17 Mar 2014, 21:40:19 GMT+00:00
Subject: Installing mobile spec for testing API plugins only


I'm trying to install mobilespec to test under installed Cordova 

$ git clone
$ cordova create mobilespec
$ cd mobilespec
$ rm -rf www
$ ln -fs ../cordova-mobile-spec www
$ cordova platform add firefoxos
$ cordova plugin add ../cordova-mobile-spec/dependencies-plugin

And then adding a plugin from my directory (as usually with mobilespec)

On all pages I'm seeing
"Could not find cordova.js script tag. Plugin loading may fail." 

When trying to test There is an error
ReferenceError: device is not defined
in this line:
console.log("Device="+device.platform+" "+device.version);

Am I doing something wrong?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message