markusfisch / BinaryEye

Yet another barcode scanner for Android
https://play.google.com/store/apps/details?id=de.markusfisch.android.binaryeye
MIT License
1.52k stars 121 forks source link

MacroDroid/Tasker API #253

Open wangjunmao opened 2 years ago

wangjunmao commented 2 years ago

Is it possible to add an API for MacroDroid/Tasker to send the Scan results to them? Such as a Intent: Tasker Intents

markusfisch commented 2 years ago

This should already work with the com.google.zxing.client.android.SCAN or binaryeye://scan Intents.

You can use adb to test fire them like this:

$ adb shell am start -W -a android.intent.action.VIEW -d 'binaryeye://scan'
wangjunmao commented 2 years ago

I can fire the BinaryEye, but I cannot get the Extra from Intent:-( Like this Screenshot_20220323-223222~2 BinaryEye is the best one, so l hope BinaryEye can integrate with the automatic application.

markusfisch commented 2 years ago

Well, unfortunately Tasker isn't free so I can't simply try it 😬

But your screenshot looks good so far! 🤔 The scanned code is a String in the SCAN_RESULT Extra, just like it's shown here. If I read this correctly, the scanned code is saved into the variable QRCODE.

Did you check the content of the variable QRCODE after scanning? Is it empty?