markusfisch / BinaryEye

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

Feature request: Deep-linking option #266

Open coolibry opened 2 years ago

coolibry commented 2 years ago

Hello,

thanks for this app,

Feature request when display content:

i removed option for deep-linking + clipboard because using clipboard event is not working as excepted, i think i use ret argument.

Thanks in advance.

markusfisch commented 2 years ago

Hi! Well, if you're opening the app with a return URL (the ret argument) like this:

binaryeye://scan/?ret=http%3A%2F%2Fmarkusfisch.de%2F%3Fresult%3D{RESULT}

The app will return immediately after scanning with the detected code in the URL (in the result= argument). In this sample, the app would invoke http://markusfisch.de/?result=asdf (where asdf is the detected code).

So there's no need to use the clipboard as you already found out. So what would the two buttons be for?

coolibry commented 2 years ago

hello, thanks for this answer, picture is better to explain : Screenshot_20220512-214104_Binary Eye

this permit to show barcode and after value is as excepted then button is here to make action.

can you agree to this? thanks in advance.

coolibry commented 2 years ago

hello, can you agree to this request (add two buttons)? thanks in advance.

markusfisch commented 2 years ago

Hi, and sorry for not answering back so long 🙈

Frankly, I was hoping the ret argument would be enough for your situation. If you are using the ret argument, this screen wouldn't even show up - so there's no point in adding buttons.

If you want someone to scan something and have that something back on your website, you should really really use the ret argument because this is its sole purpose 😉 Then, you wouldn't have to explain that your users need to enable some option and then press some special buttons. Binary Eye would simply open the return URL with the scanned content and you can do with it whatever you want.