evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Add push notifications when using Progressive Web App

Open webalexeu opened this issue 7 months ago • 11 comments

Is your feature request related to a problem? Please describe. No problem, improvement on the PWA to add push notifications

Describe the solution you'd like Receive notifications from the PWA

Describe alternatives you've considered NA

Additional context NA

webalexeu avatar Apr 13 '26 09:04 webalexeu

I don't see this as a desirable feature that justifies the amount of required complexity.

naltatis avatar Apr 13 '26 15:04 naltatis

I don't see this as a desirable feature that justifies the amount of required complexity.

Did you saw already the PR ? I agree there is bit of complexity but everything is already coded

webalexeu avatar Apr 13 '26 17:04 webalexeu

I agree there is bit of complexity but everything is already coded

Not a good argument. Generating code is easy. Maintaining it in a proper way not so much.

naltatis avatar Apr 13 '26 18:04 naltatis

I'd first would like to see if there is real demand for this feature.

Speaking for myself, I'm not a huge fan of web push. It can be used for good, but so far my main encounters are in spammy ways from web tools or news sites that ask me for permission without my request. I also don't think the native browser UI for managing push is at a good level UX wise.

naltatis avatar Apr 13 '26 18:04 naltatis

Haven't looked at the code, however push notification just like the configurable messaging services could be useful for certain situations. By adding it under those services, you leave it up to the end user to configure it for the desired notifications/events.

For me I set up the messaging service to Discord in a dedicated server and channel, and used that with push notifications to my phone. However being able to skip the Discord step could simplify the setup and be a nice addition.

TijsDeBelie avatar Apr 16 '26 21:04 TijsDeBelie

I've added a toogle in the UI to control it

Image

webalexeu avatar Apr 16 '26 22:04 webalexeu

That's not really consistent with the services right? What I meant was that there can be a new service you can configure for the browser, that way it's fully consistent with the existing setup.

TijsDeBelie avatar Apr 16 '26 22:04 TijsDeBelie

That's not really consistent with the services right? What I meant was that there can be a new service you can configure for the browser, that way it's fully consistent with the existing setup.

@naltatis what do you think ? Should I move it under services ?

webalexeu avatar Apr 17 '26 06:04 webalexeu

If we decide to add web push it must definitely function exactly like the existing push infrastructure and configuration.

But I'm still not sure if this feature is worth adding. If we want to add and maintain it, we need a reliable way to verify its functionality going forward (e.g. e2e tests). The required code change is quite complex.

But before discussing the how, let's focus on the "if". Feel free to 👍 on the issue description if this is a feature you'd really use in day to day life.

For context: We will be adding native notifications via the app in the future. https://github.com/evcc-io/app/issues/16

naltatis avatar Apr 17 '26 15:04 naltatis

If we decide to add web push it must definitely function exactly like the existing push infrastructure and configuration.

But I'm still not sure if this feature is worth adding. If we want to add and maintain it, we need a reliable way to verify its functionality going forward (e.g. e2e tests). The required code change is quite complex.

But before discussing the how, let's focus on the "if". Feel free to 👍 on the issue description if this is a feature you'd really use in day to day life.

For context: We will be adding native notifications via the app in the future. evcc-io/app#16

I've aligned as other services for the configuration part

webalexeu avatar Apr 20 '26 11:04 webalexeu

Seems we're not gonna add this. Sorry.

andig avatar May 01 '26 10:05 andig