-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot connect to the crypto provider #3420
Comments
Same problem, have it since I switched to a newer smartphone. Android 7.0, K-9 & openkeychain latest versions each. Received encrypted emails are not shown, without any notice. |
Workaround is to manually start the cryptoprovider (OpenKeyChain), then reopen k9 and tap on the lock sign, then sending works for me... |
This workaround not working for me. Are there any solution to send/read encrypted mails? |
cannot use the workaround either. on my other phone (Android 6.0.1, same version of K9 and OKC) all works fine. |
I have the same experience as ntruchsess. Phone: Meizu M6 Note (model M721H) I followed the instructions for generating a debug log, but it comes up empty--happy to try again if anyone wants to help me troubleshoot that process (I can get a log file, but no k9 entries appear). |
I'm seeing this also. Logs below.
Here's logs of trying and failing to have K9 initiate OpenKeychain service:
If I manually open OpenKeychain and select my key before using K9 to compose a message, the crypto provider works (at least for this test).
|
Hey, Same issue on my OnePlus too (both on Android 8 & 9), I have to start OpenKeyChain manually before being able to open/write an encrypted email. It looks like I have just solved by... turning battery optimisation for OpenKeyChain OFF! |
That seems to work for me too! Settings > Apps & Notifications > Special App Access > Battery Optimisation > OpenKeychain > "Don't Optimize" Nice find :) |
Battery optimization does not do the trick for me on my Lenovo Tab P10. |
Battery optimization doesn't work for me, either. (Pixel 3aXL, Android 10. |
I changed the battery/energy settings as described above, which didn't do the job. I also set openkeychain to autostart. Battery settings was not enough on my device, if the autostart is really necessary, I don't know. |
I was able to solve this problem in Unihertz Titan phone by going into It's possible that phone-specific app blockers may be preventing K9 mail from launching other apps such as OpenKeychain, or may be preventing OpenKeychain from being launched by other apps such as K9 mail. |
Doesn't work for me either on Xiaomi Poco F1 MIU 11.0.4 Android 10 QKQ1 |
Autostart didnt work for me, but "show popups while running in Background" did. Xiaomi PF1 MIUI 11.0.4 |
it seems that the request for accessing the crypto-excange-part from within k9mail to open easy-key-chain is handled via a pop-up that needs to start in backround and then switches to foreground. tested with redmi note4 , note 7 and note 9s. k9 mail works now on everyone of them. |
This seems to be similar to #2601. Closing this one as duplicate. |
I have the same problem on my smartphone. Manually starting OpenKeyChain does solve the problem, at least for that time.
|
@cketti This is happening now when I try to reply to an email, when I hit the send button. There isn't even any "crypto" icon. The same toast message appears when I try to save the message. K-9 Version 5.902 Also I just tried to download & install the latest version of K-9 Mail, though it's showing that the app was not installed. |
@cketti This is still happening on v. 5.904 and it's been getting annoying. I hit reply all on an email, write what I need to say to the person and remove a few things from my signature that I haven't changed yet in the settings and then I can't send the email, not even save it. I have to copy the text that I've entered, discard the new email, then hit reply all again and then paste in my text. Remove a few things from my signature and send it again. |
@life777eternal: Not being able to connect to OpenKeychain is not a bug in K-9 Mail. Your Android version is preventing K-9 Mail from talking to OpenKeychain. Often there's a way to prevent the OS from sending an app into a standby mode when it wasn't used for a while (see other comments in this thread). We could change K-9 Mail to simply not use the configured crypto provider when the app can't connect to it. But that could lead to messages that usually would be encrypted to be sent unencrypted. So I'd rather not make this change. Since the crypto provider isn't working for you anyway, you might as well disable OpenPGP support. That way you will avoid the error message and can reply to messages. Our long-term goal is to integrate at least Autocrypt functionality in K-9 Mail. That will avoid this whole "not allowed to talk to other app" scenario. |
@cketti Thanks for your reply, I've been having that issue again recently, although it didn't appear after I opened OpenKeyChain manually. Also what is "Autocrypt" ? I hadn't heard of that one before. Thank you. Also there isn't actually any "crypto icon" as it mentions in the toast message. |
I have the same problem, and like @life777eternal I don''t have any 'crypto icon' . Notice that I have several accounts with exactly the same crypto config (inc. same key) and switching to a different account usually solves the problem. So the problem does not seem to be caused by OpenKeyChain... |
What is the update on this issue? |
I'm having the same issue. Curiously, Fairmail (by M66B) doesn't show this behaviour, although it uses OpenKeychain (if installed) for encryption as well. |
Same issue here, I don't even have OpenKeyChain installed. Encryption is turned off in the K-9 Mail settings. I currently have no way to send email through the app. |
quick update: the problem still occurs to me every once in a while (but much more rarely than before). As I mentioned above, changing the 'sender' to a different account solves the problem. But what I discovered is that even selecting the current sender in the sender drop-down list does the trick! |
same for me |
Same for me. Workaround that always works is disabling encryption in Account Settings, the enabling and selecting my key again. |
Please re open, this issue remain active with current versions of all formentioned apps. Have a nice day |
Fix released in pre-release: https://github.com/thundernest/k-9/releases/tag/6.704 |
Expected behavior
Email should be sent successfully with using crypto provider (encrypted mail).
Actual behavior
When I try to send (encrypted or not encrpyted) a message I got a warning:
"Cannot connect to crypto provider, check your settings or click crypto icon to retry!"
Few weeks ago it was successfully installed and tested. Maybe a system update has broken it.
If encryption switched off on K-9 mail settings, mail sending works.
Steps to reproduce
Environment
K-9 Mail version: 5.403
OpenKeyChain: Easy PGP: 5.0.2
Android version: 7.0
Account type (IMAP, POP3, WebDAV/Exchange): IMAP
mail service provider: gmail
The text was updated successfully, but these errors were encountered: