markusfisch / BinaryEye

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

Could not send email #409

Closed biopsin closed 8 months ago

biopsin commented 9 months ago

Hi, thank you for a sweet little code scanner. Unfortunately I'm not able to send the email when scanning a QR CODE formated below and selecting the email icon upon detection.

(Example used from Superuser)

The syntax is

MATMSG:TO:john@example.com;
SUB:Some subject text here;
BODY:Some body text here;;

I have to specify that Im using Lineageos-18.1 BinaryEye-1.61.1 Fairemail-1.2075 but I have deactivated the default mail client, and I suspect this is the main issue, what do you think?

markusfisch commented 9 months ago

Hello and thanks for filing an issue about that! 👍

Is there an error message when you tap on the mail button?

The mail button is simply creating a ACTION_SENDTO intent, which should open the default mail client.

So yes, if you haven't set anything as your default mail client, this may be the reason 😬

biopsin commented 9 months ago

Thank you for the reply;

Is there an error message when you tap on the mail button? only Could not send email I'll be doing a update this weekend and I'll test reinstalling the lineage email client and see what happens, may be I only need to set a default selecting Fairemail first time and then uninstall it again..

Edit: .. the situation is like this, the stock email application was removed in lineageos-18.1 since it was unmaintained. So I installed K-9 for test, however when a emailaddr is detected and clicked on Fairemail is opened and there is no question setting a default client. In my eyes it seems Fairemail is the default even tho there is "No default set." in app info screen. Seems Binary-eye dont care for any of them either and outputs just Could not send email .

markusfisch commented 9 months ago

Well, Binary Eye is using the default way of how apps can send mails.

So there's not much Binary Eye could do, apart from letting you configure, in the app, what Intent to fire when you want to send a mail. Of course, it would be highly unusual to have something like this in an app. After all, that is why there are things like default apps.

Do you have any other app where sharing into you mail app works?

biopsin commented 8 months ago

Ok, for some reason it just started working, I think its the way I create the mail QR code and linebreak it. Im closing it as local user error. Have a nice day.

markusfisch commented 8 months ago

Thanks for the info! I'm glad it's working now! 😄