joaomgcd / JoinDesktop

A desktop app for Join built in Electron
240 stars 20 forks source link

Issue authenticating and connecting Join Desktop #1

Closed profucius closed 4 years ago

profucius commented 4 years ago

I've downloaded the Join desktop app, and at first launch it asks to load a browser window to authenticate. image

I do that, and login with my google account. It then shows a window with text saying it will load another window, it does that, and says authentication is complete and that I can close the window.

image

However, the Desktop App is not showing anything; It is a plain white window with a spinning reload icon at the top right.

image

Also in the web browser tab, it shows this error. I've tried this with Chrome, Opera, and Firefox, same error.

image

Then, I close and reopen the Desktop App, and it does show the tabs, but I'm seeing the error at the top like I did in the browser tab. I also do not see any of my devices, which I do have connected in the UWP app just fine.

image

UWP is fine:

image

joaomgcd commented 4 years ago

Ok, the website has a bug right now that I'll try to fix ASAP.

To work around it for now you should load the website on the devices tab and then press the refresh arrow at the top right of the join top par. After that's done refresh the page in Chrome. check if the errors go away that way. If they do, please go to settings and press the button to connect to the Desktop app again.

Then just for good measure restart the desktop app.

Does that make it work? :)

yochananmarqos commented 4 years ago

What he described above is also happening. However, for me it opens the authentication tab in the background for a split second and closes. Then it's going in an endless loop and nothing every appears in the application.

I'm already signed in via the Chrome extension. I also tried disabling the extension. I'm using encryption if that makes a difference.

I built the Linux application from source on Manjaro GNOME. My AUR package: joindesktop-git.

joaomgcd commented 4 years ago

Thanks for the report. Other people are having this issue as well. I'll try to fix it and get back to you. thanks for testing!

yochananmarqos commented 4 years ago

With the latest commit I was able to get signed in and it's somewhat functional. Thanks!

joaomgcd commented 4 years ago

Hi thanks for letting me know! :) Can you clarify why "somewhat functional"? What exactly is not working for you?

yochananmarqos commented 4 years ago

Sorry, I wasn't clear. I meant it appeared to be functioning, but I hadn't had a chance to fiddle around with it yet. I'll let you know if I encounter any other issues.

By the way, I added this to the AUR as joindesktop-git.

joaomgcd commented 4 years ago

I've downloaded the Join desktop app, and at first launch it asks to load a browser window to authenticate....

Are you able to test this now? Is it still not working?

Joecascio2000 commented 4 years ago

I just tried setting up Join Desktop and it doesn't seem to be working but the issue is different than the two in this thread. For me, Join Desktop says "Join will now sign you in via the Join website" then it successfully opens the website. The website displays "Must be registered. To make the desktop app work correctly your browser needs to be registered as a Join device." This is where it doesn't seem to be working. I'm not sure how to force it to register.

Using Edge Chromium browser: Version 83.0.478.64 (Official build) (64-bit)

Itay-kun commented 4 years ago

On my end the test site doesn't get my browser as a registered join device so it doesn't complete the authentication

image

also in the desktop app the consol shows user as null because of resources loading fail image

(i'm on windows 10, tested with Chrome and with Brave browsers)

Joecascio2000 commented 4 years ago

The screenshots that @Itay-kun provided match mine. I tried manually looking for the file and it appears that app.asar is a file and not a folder. image

joaomgcd commented 4 years ago

That "dexie" warning is really not an issue, just a warning. It won't stop anything from working. It's normal that it wasn't able to load the user because you weren't signed in yet.

Could you please try going in http://testsjoaomgcd.appspot.com/ and the force-refreshing (Ctrl+F5) and see if that forces it to register itself as a device? If that doesn't work could you please right-click the page > inspect > Console tab and see what's there?

Thank you very much for helping to test this!

Joecascio2000 commented 4 years ago

That "dexie" warning is really not an issue, just a warning. It won't stop anything from working. It's normal that it wasn't able to load the user because you weren't signed in yet.

Could you please try going in http://testsjoaomgcd.appspot.com/ and the force-refreshing (Ctrl+F5) and see if that forces it to register itself as a device? If that doesn't work could you please right-click the page > inspect > Console tab and see what's there?

Thank you very much for helping to test this!

A force refresh didn't work. Here is the console. image

joaomgcd commented 4 years ago

Interesting. Seems like your browser isn't able to register itself on Google's FCM for some reason. Do you know if you maybe disabled web push support in your build by any chance?

Joecascio2000 commented 4 years ago

Interesting. Seems like your browser isn't able to register itself on Google's FCM for some reason. Do you know if you maybe disabled web push support in your build by any chance?

Bingo. I got it. I disabled browser notifications because they be bugging me. So, browser notifications needs to be enabled and you need to allow join. image image

joaomgcd commented 4 years ago

Nice! :) So it's working correctly for you now?

Joecascio2000 commented 4 years ago

Nice! :) So it's working correctly for you now?

Yup, it's connected. Still testing/configuring notifications. If I run into an issue there, I'll open a different issue thread.

joaomgcd commented 4 years ago

Cool. I'll close this then. If anyone still has this issue please do let me know and I can re-open it again.

spidy2356 commented 10 months ago

@joaomgcd i face the same issue like @Itay-kun (https://github.com/joaomgcd/JoinDesktop/issues/1#issuecomment-659651347) , turn on notificaton but still same, can't login on my PC app using brave as default browser. edit: after enable notification, pop ups and redirects , I successfully make my browser as join device. now I get this error "Error! Couldn't connect. Make sure that the app is listening on the port you configure here."

n3me5is-git commented 10 months ago

@joaomgcd i face the same issue like @Itay-kun (#1 (comment)) , turn on notificaton but still same, can't login on my PC app using brave as default browser. edit: after enable notification, pop ups and redirects , I successfully make my browser as join device. now I get this error "Error! Couldn't connect. Make sure that the app is listening on the port you configure here."

Same here

roadbike831 commented 7 months ago

Hello, how can this be CLOSED?? when it's still a BUG in 2024??? come on

I downloaded the Join Desktop app and try and load it, get the error "Can't Connect To The Internet" < this was a Bug never fixed back in like 2018???? any help?

IF not, no problem. I have other computers I can use Join Desktop App On.