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

    Scanning failed: Class not found

    Help
    1
    1
    135
    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.
    • U
      Umar last edited by Umar

      Did any one use Phonegap-plugin-barcodescanner,when i want read QR code i have problem “scanning failed:class not found”.
      There is my code

      <template>
            <q-btn color="primary" label="Scan QR code"
                   @click="scan()"></q-btn>
      </template>
      
      <script>
      export default {
        name: 'Index',
        methods: {
          scan () {
            cordova.plugins.barcodeScanner.scan(
            
                    function (result) {
            
                      alert('We got a barcode\n' +
            
                        'Result: ' + result.text + '\n' +
            
                        'Format: ' + result.format + '\n' +
            
                        'Cancelled: ' + result.cancelled)
            
                    },
            
                    function (error) {
            
                      alert('Scanning failed: ' + error)
            
                    }
            
                  )
      }
      </script>
      
      
      1 Reply Last reply Reply Quote 0
      • First post
        Last post