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

Custom callbacks on subscription #133

Open
azmeuk opened this issue Sep 27, 2023 · 0 comments
Open

Custom callbacks on subscription #133

azmeuk opened this issue Sep 27, 2023 · 0 comments

Comments

@azmeuk
Copy link

azmeuk commented Sep 27, 2023

This would be very convenient to execute custom code when users subscribe or unsubscribe to notifications.
I suggest implementing a callback mechanism, for instance by adding a callback parameter in to the subscribe and unsubscribe functions, and execute the callbacks in or instead of reg.pushManager.subscribe(options).then and subscription.unsubscribe().then for instance.
What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant