Skip to content
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

Soduto doesn't automatically connect after macOS wakes from sleep #7

Open
sannidhyaroy opened this issue Nov 29, 2022 · 1 comment
Open

Comments

@sannidhyaroy
Copy link

sannidhyaroy commented Nov 29, 2022

Soduto will stay connected to my phone for a few seconds after I close the lid of my MacBook and after sometime it will disconnect. But when I open the lid back up, Soduto doesn't automatically connect to my phone. I have to tap on the Menu bar icon once for it to check for nearby devices and connect to my phone. Is this a bug?

EDIT: I'm not sure if this is the right way as I'm a noob when it comes to Swift, but after I added a didWakeNotification listener in AppDelegate and executing self.statusBarMenuController.refreshDeviceLists() when it receives the wakeup notification, it seems to have fixed the issue. If there is a better approach than this, please feel free to share.

@agungrbudiman agungrbudiman added the bug Something isn't working label Nov 30, 2022
@agungrbudiman
Copy link
Owner

agungrbudiman commented Nov 30, 2022

I couldn't reproduce the issue. It seems soduto only listening on the socket, the phone (kde connect) that initiate the connection. Are you sure kde connect still running and not killed? try exclude it from battery saver feature on the phone.

It's ok, I'm also new to Swift, my main goal of this fork just to get working native build for my m1 mac. Feel free to open pull request.

@agungrbudiman agungrbudiman removed the bug Something isn't working label Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants