Giter Club home page Giter Club logo

Comments (3)

ihadeed avatar ihadeed commented on May 18, 2024

Looking at the definition it looks like you should call it by simply
calling the property device.

Example: let device = Device.device;

Then call sub properties, examples: device.uuid; , device.model;
On Mar 9, 2016 10:42 AM, "Guillermo" [email protected] wrote:

Hello!

I'm getting the following error while using Device plugin:
[image: image]
https://cloud.githubusercontent.com/assets/5492960/13640440/f0f9de7c-e614-11e5-8075-2260c4eab83e.png

If I call it from window.device it works as expected. I have the import
from 'ionic-native' at the top of my js file.
Is there anything I'm doing wrong?

Thanks!


Reply to this email directly or view it on GitHub
#36.

from awesome-cordova-plugins.

guillenotfound avatar guillenotfound commented on May 18, 2024

Yup, that was the key, but the documentation confuses me:

http://ionicframework.com/docs/v2/native/Device/

Thanks for the help.

from awesome-cordova-plugins.

ihadeed avatar ihadeed commented on May 18, 2024

@ZiFFeL1992 glad I could help. Thanks for pointing out the wrong docs.

from awesome-cordova-plugins.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.