Describe the bug
When logging in to a Google service it doesn't allow on the basis of being a non-secure app.
To Reproduce
Steps to reproduce the behavior:

Desktop (please complete the following information):
I have the same issue!
Same issue: MacOS Mojave (version 10.14.6)
Same issue on Linux Mint 19.2 (Franz ver. 5.4.0)
Same issue here for GMail and Google Calendar.
MacOS Catalina 10.15.1
I tried to re-install Franz from scratch but this didn't help.
Same issue here, too, but only for one of the Google accounts I'm trying to use in Franz. Another account has no such issues.
For the account I have an issue with, apps are split across three services -- mail, calendar, and hangouts, I only have problems with mail and hangouts. Calendar is fine.
Windows 10
Version: 5.3.3
Release: 10.0.18362
Same issue. Fedora 31, Franz 5.3.3.
same here with Franz 5.4.0-beta on macOS Catalina
Google recently banned few linux browsers, marking them as not secure. Most likely the underlying browser that Franz is using behind the scenes is the one of them.
Hangouts don't work -> "This browser or app may not be secure"
MacOS Catalina 10.15.1 & Franz 5.3.3.1582
Changing the user agent works for me.
module.exports = Franz => class Hangouts extends Franz { overrideUserAgent() { return "Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10136"; } };
Yeah @q-g-j it works! But.. I've other path:
~/Library/ApplicationSupport/Franz/recipes/hangouts/index.js
Same issue, Franz 5.4.1 and MacOS Catalina 10.15.2.
For Windows, the location of the file is:
C:Users\[username]AppDataRoamingFranzrecipes\[google_service]index.js
or
%APPDATA%Franzrecipes\[google_service]index.js
Same issue for my gmail and google calendar, I have spent over an hour with google support, we have tried everything possible and came to the conclusion that its a problem with the application
I needed a different url
~/Library/ApplicationSupport/Franz/recipes/gmail/index.js
But potentially gmail needs to replaced by the google service you need.
My file now looks like this:
"use strict";
//module.exports = Franz => Franz;
module.exports = Franz => class Hangouts extends Franz { overrideUserAgent() { return "Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10136"; } };
We are seeing this in Ferdi as well and reckon it would be easier for each user to be able to override the user agent in the service settings as a more sustainable solution:
As seen in #263, #229 and #140, Google (and maybe other services) are regularly making changes to prevent usage of their services within some browsers/apps. It seems this detection is based on the user agent. If we had remote update of services (still pending via getferdi/server#14), we could update the user agent used in the recipe to periodically overcome this, but ultimately the updated user agent will be somewhat blocked. This is why it would be useful for each user to be able to override the user agent used by a specific service in the service settings, so each user can use whatever user agent works for them (and avoid using the same user agent for all Ferdi user via a recipe update).
Same issue here! Please fix.
Same issue here with Franz 5.4.1 and Ubuntu 19.10.
Same issue with Franz 5.4.0 and Ubuntu 18.04.3 LTS
Changing the user agent works for me.
- Close Franz
- open ~/.config/Franz/recipes/hangouts/index.js in a text editor
- as the last line add:
module.exports = Franz => class Hangouts extends Franz { overrideUserAgent() { return "Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10136"; } };
That's an Edge-Browser for which Google always shows warnings to support Google Chrome.
I'd use your usual browsers user agent.
On Windows the file path is %AppData%Franzrecipes
someone should update the chrome engine in Franz to close this issue.
Changing the user agent works for me.
- Close Franz
- open ~/.config/Franz/recipes/hangouts/index.js in a text editor
- as the last line add:
module.exports = Franz => class Hangouts extends Franz { overrideUserAgent() { return "Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10136"; } };That's an Edge-Browser for which Google always shows warnings to support Google Chrome.
I'd use your usual browsers user agent.On Windows the file path is %AppData%Franzrecipes
someone should update the chrome engine in Franz to close this issue.
This solved to me!
As of today, this issue seems to have been fixed? Perhaps Google whitelisted the Franz user agent?
I'm running 5.3.3 on Windows 10 Pro.
Still problematic on mine. 5.4.1 on Mac Catalina 10.15.1
Weirdly enough it only seems to be on login. I have the same issue with GMail and Google Calendar, I made this change to the gmail index.js and it let me log in. But then if I clicked any links in emails it said it had been blocked by a popup blocker. I closed franz and removed it, when I reopened I can use gmail as usual. So I guess google is only checking the user agent at log in 🤦‍♂️
Yes, that check is only at login. However, if you quit Franz and didn’t have to login, it’s probably because you didn’t fully quit Franz. If you’d fully quit, you'd almost certainly have to login again.
Huh, what? I fully quit Franz all the time without having to log back into my services
However, if you quit Franz and didn’t have to login, it’s probably because you didn’t fully quit Franz. If you’d fully quit, you'd almost certainly have to login again.
Not really, you are also not required to login to gmail every single time you quit your browser.
Changing the user agent works for me.
- Close Franz
- open ~/.config/Franz/recipes/hangouts/index.js in a text editor
- as the last line add:
module.exports = Franz => class Hangouts extends Franz { overrideUserAgent() { return "Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10136"; } };
In my case the problem was with the Todoist app, so if you guys are with the same problems with other apps just find the app folder under ~/.config/Franz/recipes and then paste the code above changing the class (normally is the app name in CamelCase).
So i did:
- Close Franz
- open ~/.config/Franz/recipes/todoist/index.js in a text editor
- as the last line add:
module.exports = Franz => class Todoist extends Franz { overrideUserAgent() { return "Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10136"; } };
see this reddit thread on how to fix the Electron app
https://www.reddit.com/r/electronjs/comments/eiy2sf/google_blocking_log_in_from_electron_apps/
app.userAgentFallback = app.userAgentFallback.replace('Electron/' + process.versions.electron, '');
Same issue here, but the module.exports = Franz => class Hangouts extends Franz { overrideUserAgent() { return "Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10136"; } }; fix did not work for me
Same issue here, but the
module.exports = Franz => class Hangouts extends Franz { overrideUserAgent() { return "Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10136"; } };fix did not work for me
It only worked for me after I quit franz and restarted it. Simply disabling the service and enabling it again after making the change did not seem to work but the module.exports line does seem to be a fix at the moment!
Appending Edge/12.10136 seems indeed to fix the issue, but most of the URLs in mails now open a popup instead of a new tab
Provided workaround not working for me on Windows =(
After applying different user agent it loads mobile site version and when I click Sign in, redirects to external browser.
This is the same issue as #1573. Closing one or the other would be helpful.
I've noticed it only happens in some accounts but not all. I have another Google account and didn't get this error message while my private one did.
Same problem on Ubuntu 18.04.3 LTS and Franz 5.4.0. The solution above worked for me in the services where I had problems (Google Calendar and Trello). Hope this is fixed soon
BTW the first fix also works for the google hangouts issue I've encountered in the last week with Franz 5.4.1 on Windows 10.
To recap the steps:
Open [user name]AppDataRoamingFranzrecipeshangoutsindex.js in a text editor.
Comment out "//module.exports = Franz => Franz;" line.
Add the following line:
module.exports = Franz => class Hangouts extends Franz { overrideUserAgent() { return "Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10136"; } };
Same issue with Catalina 10.15.2
Same issue here. Have tried the workaround but it constantly opens into a new browser tab/instance. gmail service.
Bit sad really as I have decided to engage with the 14 day trial after 2 months of using free. Adding gmail would be a bit of killer application for me as I could (sadly) drop Thunderbird and move my email completely to the cloud. Without this I can drop all bar 3 quite easily. The others are just "nice to haves".
Good luck solving this. I will try again before the end of my trial. Not a huge amount of money but something :)
Me too - different application (IM+).
Not secure... or maybe blocks ad serving? You decide.
After several unsuccessful attempts, I managed to get my Gmail service back working again. I imagine this is the case with any Google service. This is what I did to get it working on MacOS 10.14.6.
window.navigator.userAgent string from your Chrome dev tools (desktop browser). Mine was:
~/Library/Application\ Support/Franz/recipes/gmail/index.jsmodule.exports = Franz => Franz; to be the following (using the userAgent string copied from step 1 above):module.exports = Franz => class Gmail extends Franz { overrideUserAgent() { return "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36"; } };
And then it just started working for me. Hopefully that might help someone else who is trying to get it to work.
same here. Manjaro KDE
@zboman solution works for me on Linux Mint. Thanks man!
@zboman
Thank you for you solution, but it doesn't work for me.
As others have mentioned, using my Chrome agent causes my browser to open the login page instead of Franz.
Using MacOS 10.15.3 and Franz 5.4.1
having same issue on macOS Catalina
Changing the user-agent works for me. I'm using Manjaro Linux and Franz 5.4.1.
What I did is edit the file ~/.config/Franz/recipes/
// Comment out the original setting
//module.exports = Franz => Franz;
// Add this setting. It seems only Windows user agent can work
module.exports = Franz => class Gmail extends Franz { overrideUserAgent() { return "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:54.0) Gecko/20100101 Firefox/73.0"; } };`
For some reason only when the OS is Windows will this work for me.
Same problem here: Windows 10 Education, freshly downloaded and installed franz. Please fix :/
I've noticed it only happens in some accounts but not all. I have another Google account and didn't get this error message while my private one did.
I am having this exact same error. Two of my Google accounts work fine, and the third does not.
Happens with Google Voice as well
Same issue here.
OS: MacOS 10.15.3 (19D76)
Franz: 5.3.3 (5.3.3.1582)
Changing the useragent did not solve the issue for me.
Same issue here.
OS: MacOS 10.15.3 (19D76)
Franz: 5.3.3 (5.3.3.1582)Changing the useragent did not solve the issue for me.
For me neither.
Describe the bug
When logging in to a Google service it doesn't allow on the basis of being a non-secure app.To Reproduce
Steps to reproduce the behavior:
- Add Gmail as Service
- Insert username and password
- See error
Desktop (please complete the following information):
- OS: Windows 10 Home - 10.0.18363 Build 18363
Franz: Version 5.4.0
It worked for me
Press control+R to open Run and type in Run %Appdata% and enter and then go from there to franz and recipes and in my case i can't login into gmail and get in gmail folder and open index with notepad ++ or just right click and select edit option in menu and it opened with windows own notepad and delete all of them and paste this in there
"use strict";
//module.exports = Franz => Franz;
module.exports = Franz => class Gmail extends Franz { overrideUserAgent() { return "Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10136"; } };
in my case it was gmail in your case it might be different if it is then change the class gmail name and put your app which is not working and press control+S to save close all and open Franz and see if its working
Someone may be assigned to this issue, to update chrome engine in Franz
https://github.com/meetfranz/franz/issues/1771#issuecomment-606446211
This on worked for me on MacOS Catalina :
Edited ~/Library/Application Support/Franz/recipes/gmail :
"use strict";
module.exports = Franz => class useragent extends Franz
{
overrideUserAgent ()
{
return "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36";
}
};
Links opens correctly, no side effects 👍
Important : I needed to remove my Gmail tab and recreate a new because the old tab was unable to connect.
Nothing of those worked for me, but this recipe https://github.com/Adondriel/recipe-gmail is working
Got correct values from http://www.browser-info.net updated in place of module.exports = Franz => Franz; and still same error.
what should i use for the class name for google voice?
Changing user agent fixed my multiple Gmail account issues, but I am unable to log into Google voice with any user agent I try. There is something different for Google voice.
Same Google mail account works with modified user agent and does NOT work with the same user agent for Google voice.
Solved for with me with Franz update 5.5.0-beta.2.1747
Fixed for me as well with Franz update Version 5.5.0-beta.2 (5.5.0-beta.2.1747), on OSX Catalina 10.15.4. Thank you! 🙏(The previous mentioned solutions did not work for me.)
This on worked for me on MacOS Catalina :
Edited~/Library/Application Support/Franz/recipes/gmail:"use strict"; module.exports = Franz => class useragent extends Franz { overrideUserAgent () { return "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36"; } };Links opens correctly, no side effects 👍
Important : I needed to remove my Gmail tab and recreate a new because the old tab was unable to connect.
This worked for me on Windows 10, Franz version 5.4.0. I changed the class to useragent.
Changing the user agent works for me.
- Close Franz
- open ~/.config/Franz/recipes/hangouts/index.js in a text editor
- as the last line add:
module.exports = Franz => class Hangouts extends Franz { overrideUserAgent() { return "Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10136"; } };
Hello,
Thank you for sharing. I do not understand how to apply for this IT language. I tried to open Terminal in my Macbook pro and copy + paste which doesn't work. I have the issue with the Gmail and G calendar. Would you be able to help me, please?
Thanks very much in advance!
Describe the bug
When logging in to a Google service it doesn't allow on the basis of being a non-secure app.
To Reproduce
Steps to reproduce the behavior:
- Add Gmail as Service
- Insert username and password
- See error
Desktop (please complete the following information):
- OS: Windows 10 Home - 10.0.18363 Build 18363
Franz: Version 5.4.0It worked for me
Press control+R to open Run and type in Run %Appdata% and enter and then go from there to franz and recipes and in my case i can't login into gmail and get in gmail folder and open index with notepad ++ or just right click and select edit option in menu and it opened with windows own notepad and delete all of them and paste this in there"use strict";
//module.exports = Franz => Franz;
module.exports = Franz => class Gmail extends Franz { overrideUserAgent() { return "Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10136"; } };in my case it was gmail in your case it might be different if it is then change the class gmail name and put your app which is not working and press control+S to save close all and open Franz and see if its working
Dosen't work for me!
Im using Win10, 64bits, just this account I cant loggin my Gmail on Franz, anothers accounts dosnt appears this issue.
I dont know what to do!
Does anyone know what to change the string to for Google Voice? Because it just deletes module.exports = Franz => class Google Voice extends Franz { overrideUserAgent() { return "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36"; } }; when I launch the service.
same issue with win10 x64
Same pb after password change, recipe fix does not work either
For me the update process didn't work. So I deinstalled the software and
reinstalled the new one which worked fine.
Yann Guégan notifications@github.com schrieb am Sa., 30. Mai 2020, 16:26:
Same pb after password change, recipe fix does not work either
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/meetfranz/franz/issues/1720#issuecomment-636338183,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AH3HJ5HLDQYNSU6Y4SVMRCTRUEJQBANCNFSM4J2DOVDA
.
same for me. i added login using google. and it works fine except that i see this error message when start a debugger in vs code. .... can not continue a development
Same here for me. Mac 10.14.6 Franz 5.3.3
Upgraded to 5.5 and works for me now
just did a clean installation using the version https://chocolatey.org/packages/franz delivers (should be 5.5.0) and got the problem.
Interesting enough - on the same machine on a Windows 10 on a different SSD the problem doesn't appears.
Used Googlebot User Agents to prevent it...
I used Franz 5.4.0 and updating UserAgent to Chrome/42.. fixed this problem for me in "hangoutschat" recipe.
Here is content:
module.exports = Franz => class Gmail extends Franz { overrideUserAgent() { return "Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10136"; } };
Just upgraded to 5.5.0 and it stopped to work with message "This browser does not support security keys."
Recipe source code is the same. Looks like something was changed in Franz itself. I see some changes related to UserAgent in this commit (https://github.com/meetfranz/franz/commit/d7840ba) and I suspect that workaround that changes UserAgent doesn't work anymore.
Can someone help with question - how can I check what UserAgent is used when try to login to Google in "hangoutschat" recipe? Doe it use overridden value "Chrome/42.0.2...." or default one?
I have Win 7, Franz 5.5.0
I updated to the latest beta version (5.6.0-beta 1) and I was able to log into Hangouts!
I just tried to upgrade to (5.6.0-beta 1) and it still doesnt work. It doesnt ask me to insert security key and new error message is
Your sign-in settings don't meet your organization's 2-Step Verification policy.
Contact your admin for more info
Does anyone know what to change the string to for Google Voice? Because it just deletes
module.exports = Franz => class Google Voice extends Franz { overrideUserAgent() { return "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36"; } };when I launch the service.
This worked for me on OSX
Most helpful comment
Changing the user agent works for me.
module.exports = Franz => class Hangouts extends Franz { overrideUserAgent() { return "Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10136"; } };