fix: remove notification permission prompt#4302
Conversation
Platform specifics: - Windows and Linux: permission prompts are not required nor common. - MacOS 10.15+: A first-use prompt is provided by the OS. - MacOS older versions: Notifications can be turned off in system settings. Details: - removed the permission dialog entirely - removed the settings module, which only stored the notification preference: - the settings module used bincode, which makes no compatibility guarantees across rust versions, struct changes etc - removed the bincode dep - the public API is unchanged, but permission related endpoints return static responses instead. closes tauri-apps#4244 closes tauri-apps#1252
|
Don't remove or deprecate the |
|
Deprecation is probably not even a thing pre-1.0, I don't know why I even said that :) Removing OTOH may, counter-intuitively, be a really good idea. It would leave a blank slate for precisely those API changes you're proposing. They would be easy to add later, but hard to change if they're cemented in 1.0. I doubt we have time to get those changes in pre-1.0. Heck, I'm even doubting we can get this PR in, even if people agree would agree with this approach. In either case, leaving this PR as-is for now to solicit more feedback. |
|
To sum up what you currently have in this PR if I'm understanding correctly:
For point 4, this is the only one we shouldn't remove. Right now it directly reads from Keeping in mind that |
|
I agree with you @lorenzolewis |
|
@betamos Do you think that gives you enough info to modify this and get it to a reviewable state with those changes? Only code change is NOT removing |
|
Thanks for the feedback. Point 4 refers to an internal method that is no longer needed. The public method remains, there are no API changes in this PR. Feel free to triple check me on this. There's a little bit of magic in the Undrafting then :) |
|
Btw @betamos with that many amazing contributions you should look into setting up commit signing :) |
Thanks for the reminder. Done now :) And thanks for attending to this PR. Glad to have this in before 1.0. |
NOTE: This is a draft, so it doesn't yet have a change file and updated docs.
Highlighted a point below which could be important for 1.0 API compatibility.
Unresolved:
requestPermissionandisPermissionGrantedAPIs.Platform specifics:
Details:
across rust versions, struct changes etc
static responses instead.
closes #4244
closes #1252
What kind of change does this PR introduce?
Does this PR introduce a breaking change?
Checklist
fix: remove a typo, closes #___, #___)Other information