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

Handle SwPush notification action without application running #38218

Closed
ghost opened this issue Jul 24, 2020 · 3 comments
Closed

Handle SwPush notification action without application running #38218

ghost opened this issue Jul 24, 2020 · 3 comments
Labels
area: service-worker Issues related to the @angular/service-worker package
Milestone

Comments

@ghost
Copy link

ghost commented Jul 24, 2020

Relevant Package

@angular/service-worker

Description

Feeling a bit bad to open this issue since it must have been discussed elsewhere but I just can't found it. I already described the issue on stackoverflow, too (link).

All I'd like to achive is push notification action clicks being processed when the application is not running (e.g. sending the selected option back to the server). Relying on actions that only get executed when the application is running is no acceptable solution, that's why I think I must have missed something here. But if that really is the expected behavior this needs to change!

Describe the solution you'd like

Since I guess it's not possible to bootstrap the whole application for executing the action (eventhough it should be somehow?) I should at least be able to set an endpoint getting called when the action is clicked and no application is running.

Also clicking the notification does not open the application - and there are only unclean solutions out there to work around it. It all feels a little bit "work in progess". Are there more features for SwPush in the pipeline?

@sonukapoor sonukapoor added the area: service-worker Issues related to the @angular/service-worker package label Jul 24, 2020
@ngbot ngbot bot added this to the needsTriage milestone Jul 24, 2020
@ghost
Copy link
Author

ghost commented Jul 26, 2020

Sorry for bumping but could someone please confirm me that this is the intended behavior? I can not beleave that I'm the only one having an issue with this?

@gkalpak
Copy link
Member

gkalpak commented Jul 27, 2020

You are right, @tsproesser. Our support for notification click action is kind of rudimentary (although there are work-arounds available).
This is being tracked in #26907, so let's move the discussion there.

@gkalpak gkalpak closed this as completed Jul 27, 2020
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Aug 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: service-worker Issues related to the @angular/service-worker package
Projects
None yet
Development

No branches or pull requests

2 participants