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

Add an option to Enable DND when phone screen is turned on #178

Open
rodrigoswz opened this issue Jun 6, 2021 · 8 comments
Open

Add an option to Enable DND when phone screen is turned on #178

rodrigoswz opened this issue Jun 6, 2021 · 8 comments
Labels
feature Pull request or issue related to adding a feature

Comments

@rodrigoswz
Copy link

Is your feature request related to a problem? Please describe.
An annoying thing about WearOS is that when I'm using my phone and a notification arrives, my watch vibrates, which is useless since I'm already seeing the notification on the phone.

Describe the solution you'd like
So far, the only way I know for WearOS not to vibrate is by enabling DND, so it would be great an option to enable DND if the smartphone screen is on.

Describe alternatives you've considered
Another way would be to add a Tasker plugin to give the user the freedom to change the watch's DND when necessary.

Additional context
None

@rodrigoswz rodrigoswz added the feature Pull request or issue related to adding a feature label Jun 6, 2021
@boswelja
Copy link
Owner

boswelja commented Jun 6, 2021

Thanks for opening this! I've had the same thought in the past, but I'm worried about compatibility. The main problem with this is any up-to-date smartwatch cannot grant Smartwatch Extensions the permission required to change DnD state, which is also why DnD Sync to Watch is marked as BETA. If you have a way around this, please let me know.

@SCBionicle
Copy link

SCBionicle commented Sep 8, 2022

@boswelja There is, but it requires use of adb and I'm not sure if it would violate Google Play's policies. An example command adb shell cmd notification allow_listener [package name]/[notification service activity].

Example where I found this: https://github.com/rkkr/wear-dnd-sync

@boswelja
Copy link
Owner

boswelja commented Sep 8, 2022

Thanks @SCBionicle! That looks like the command we have now, which Google has "fixed" to not let us get permission in newer Wear OS versions

@boswelja
Copy link
Owner

As controlling DnD state on the watch automatically is not an option anymore, I'm considering a feature to send notifications on your watch instead. Would love to get some thoughts on it!

Basically, Phone DnD on -> notification on watch to "turn DnD on"

@SCBionicle
Copy link

SCBionicle commented Sep 29, 2022 via email

@boswelja
Copy link
Owner

Oh, did you find a workaround to get permission in newer Wear OS versions? The last working version that I know for the workaround you linked was 2.0, it stopped working when I got (what I think was) the 2.5 update

@SCBionicle
Copy link

SCBionicle commented Oct 2, 2022

I have the Mobvoi Ticwatch Pro 3, I use the app from the repository listed earlier in this thread. I've used that adb command, it works, at least on my hardware. But, what you say might be true, I am on Wear OS 2.38. The Ticwatch Pro 3 is supposed to get Wear OS 3 in the near future, but haven't heard anything recently.

This is your repo, it's up to you if you want to do it or not. Just in my experience, Android isn't Apple, it's just as unpredictable, or platform dependent, as Windows (though, I have no experience developing for Apple products).

@boswelja
Copy link
Owner

boswelja commented Oct 2, 2022

Oh interesting, it does not work for my Fossil Gen 5 on the same software!

Thanks for letting me know it does indeed work on some newer watches 🙂

Before I forget, all contributions are welcome. I am planning on rewriting DnD Sync soon to clean up the code though so do note there might be conflicts if work overlaps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Pull request or issue related to adding a feature
Projects
None yet
Development

No branches or pull requests

3 participants