nativescript-barcodescanner icon indicating copy to clipboard operation
nativescript-barcodescanner copied to clipboard

Incompatability with nativescript-plugin-firebase

Open sitefinitysteve opened this issue 6 years ago • 2 comments

  • Blank project
  • tns platform add android
  • tns plugin add nativescript-barcodescanner
  • tns plugin add nativescript-plugin-firebase
{
    "using_ios": true,
    "using_android": true,
    "analytics": true,
    "firestore": true,
    "realtimedb": false,
    "authentication": true,
    "remote_config": true,
    "performance_monitoring": true,
    "external_push_client_only": false,
    "messaging": true,
    "in_app_messaging": true,
    "crashlytics": true,
    "storage": true,
    "functions": true,
    "facebook_auth": true,
    "google_auth": true,
    "admob": false,
    "dynamic_links": true,
    "ml_kit": false
}
  • tns build android

image

Similar to https://github.com/EddyVerbruggen/nativescript-barcodescanner/issues/131

I'm only trying to use them together because I can't get MLKit iOS working on firebase. But now this breaks Android

sitefinitysteve avatar Mar 31 '20 15:03 sitefinitysteve

+1 I use firebase for auth and firestore and just wanted to add a QR-Scanner. I see exactly the same issue.

RoyalSWiSH avatar May 05 '20 20:05 RoyalSWiSH

So I added the following line to app.gradle in App/App_Ressources/Android, haven't tested if the scanner works though, but is compiles.

configurations.all { exclude group: 'com.google.zxing' }

See 5. on https://8squarelab.co/8square-public/EremitSampleApplication/tree/7bfeea5fbcd1a32961425cf763cba5ef386eeaaf

RoyalSWiSH avatar May 06 '20 00:05 RoyalSWiSH