*device.name <http://device.name> *was a bad example.
The problems I'm seeing is that *device* doesn't exist. This also happens
with other plugins I've tried. The plugin gets installed but the js-module
code doesn't.
$ cat ./platforms/ios/www/cordova_plugins.js
cordova.define('cordova/plugin_list', function(require, exports, module) {
module.exports = [];
module.exports.metadata =
// TOP OF METADATA
{}
// BOTTOM OF METADATA
});
On Thu, Dec 19, 2013 at 7:39 PM, Shazron <[email protected]> wrote:
> device.name has been deprecated for some time, and probably has been
> removed (but doc not updated)
>
> just repro'ed your steps with 3.3.1-0.1.2
> if you tried device.model - it should work
>
>
> On Thu, Dec 19, 2013 at 3:49 PM, Don Coleman <[email protected]>
> wrote:
>
> > I upgraded to 3.3.1-0.1.2 and iOS isn't working anymore.
> >
> > Based on Greg's bug report it looks like Android has a similar problem
> > https://issues.apache.org/jira/browse/CB-5647
> >
> > I'm using Cordova 3.3.1-0.1.2 on OS X 10.9.1, Xcode 5.0.2 (5A3005), Node
> > v0.10.22
> > $ cordova create foo com.example.foo Foo
> > $ cd foo
> > $ cordova platform add ios
> > $ cordova plugin add org.apache.cordova.device
> >
> > add the following to app.deviceReady in www/js/index.js
> >
> > alert("Device Name " + device.name);
> >
> > device.name fails
> > cordova_plugins.js doesn't contain any plugins
> >
>