Search code examples
androidcordovabarcode-scanner

Scandit with Phonegap giving Class not found error


I'm trying to use the Scandit SDK Community edition plugin in my Phonegap 3.3.0 app. I've followed the instructions at https://github.com/Scandit/BarcodeScannerPlugin and used the sample code provided, but when I run the app and click the "Scan" button, I get an alert saying Failed: Class not found.

I've tried adding <gap:plugin name="com.mirasense.scanditsdk.plugin" /> to my config.xml but it makes no difference.

Also tried adding <plugin name="ScanditSDK" value=com.mirasense.scanditsdk.plugin" /> to the config.xml but again no luck.

Any suggestions?


Solution

  • Scandit support resolved the problem by adding

    <feature name="ScanditSDK">
      <param name="android-package" value="com.mirasense.scanditsdk.plugin.ScanditSDK"/>
    </feature>
    

    to the config.xml.