No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Documentation Review

    Framework
    2
    5
    1184
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • flachica
      flachica last edited by flachica

      I think that when the documentation talks about the Cordova plugins, it is not explicit enough. I explain. I’m doing an example that needs to know device characteristics, in my case I need the IMEI. For this, I use the plugin: cordova-plugin-device@2.0.1. This plugin initializes a variable called ‘device’ in the deviceready event. As Quasar is the one who captures this event, I had to modify the .eslintrc.js file, leaving the property globals in this way:

      globals: {
          'ga': true, // Google Analytics
          'cordova': true,
          'device': true,
          '__statics': true
        }
      

      Now we just need to use the device variable in the created method of my component. As my App can run in the browser I have initialized the IMEI with the value ‘12345’ in that case. When the App runs on a mobile phone if it captures the IMEI correctly.

      created () {
          if (typeof device === 'undefined') {
            this.IMEI = '12345'
          } else {
            this.IMEI = device.uuid
          }
        }
      

      Could this information be incorporated into the Quasar documentation?

      1 Reply Last reply Reply Quote 0
      • M
        Max last edited by

        just do a pull request on dev branch here: https://github.com/quasarframework/quasar-framework.org

        really appreciate any help to make things clearer…

        max

        1 Reply Last reply Reply Quote 0
        • flachica
          flachica last edited by

          I try to commit on dev branch but I have not permissions. I’m newbie using git, could you give me some instructions?

          1 Reply Last reply Reply Quote 0
          • M
            Max last edited by

            you have to fork the repository, then do you commit and then make a pull request across repositories. from yours to quasar’s

            1 Reply Last reply Reply Quote 0
            • flachica
              flachica last edited by

              Thanks, my first PR is here https://github.com/quasarframework/quasar-framework.org/pull/451

              1 Reply Last reply Reply Quote 1
              • First post
                Last post