-
Notifications
You must be signed in to change notification settings - Fork 305
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
Added keyword argument option to force using Notifications instead of Indications in WinRT backend #620
Conversation
…rt_notify` method. Fixes #526
I am still of the opinion that Windows should be changed to use notifications instead of indications by default when both are available. This matches the BlueZ backend and the name of the method (and in my limited experience, notifications seem to be used much more frequently than indications). |
Random idea: should we "namespace" platform-specific kwargs like this with the platform name? I.e. |
I agree with the default. Will change it to use notifications instead of indications. There are multiple issue where people use some keywords in OSes that do not care for them. It is apparently not enough with documentation, since users look through issues/SO and use anything that is reminiscent of what they want to achieve. I like the idea, but the prefixing seems horribly ugly to me. I have no better idea though... How do other cross platform APIs handle this? |
What if there is a standard kwarg for each platform that takes a dictionary. Looks like this: start_notify(..., win={ "force_indication": True })
This is how cross-platform settings (json rather than API) in VS Code work. The APIs I am familiar with, usually the entire method either works or doesn't on a platform. I haven't really seen anything that just applies to single parameters. |
…tart_notify` method. Fixes #526
I have given it some thought and I agree with your assessment: we need a clearer separation of OS specific arguments. I do not personally like neither the Of the two I prefer the Flipped the default for Windows backends here now. Do you think the Changelog entry is enough or do you think it should be even more verbose about the changing of the default? I do not think many will notice it, but for those that do it might be helpful... |
It wouldn't hurt to mention the change in behavior. |
Yes, I know and agree. I was hoping on you saying, don't bother and I would magically be free of handling the change... |
Haha, OK, only 3 people will notice. 😁 |
That is enough. My bar for getting away for something is 0. It is right to do and I know it. I would have done it anyway before merging. Documentation and transparency is the only way forward in a project like this. Everything else is wrong. I REALLY need to focus on #266 and get that done soon. It feels like 80% of our issues this spring and summer came from a poor documentation and a lack of including real users' user cases in it. I need to rewrite it. |
This simplifies the logic of selecting indications or notifications and raises an error when neither are supported instead of disabling notifications/indications.
89140be
to
ba42431
Compare
I added a commit with my suggested changes. |
Added
force_notify
keyword argument for WinRT backend client'sstart_notify
method.Fixes #526