-
Notifications
You must be signed in to change notification settings - Fork 307
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
Change signature of sendNotification? #192
Comments
Both options look good to me. Maybe the first would be a smaller change compared to the second (it wouldn't change the signature for people who aren't using VAPID yet, which is the majority). |
I was thinking both would be implemented but it would be up to the developer how to pass in GCM and VAPID - Matching PR #193. Would you be ok with me putting together this change as a PR? It would be a breaking change so may do a major release at a later stage, but I think it would be a good and worthwhile change. |
OK, makes sense!
Yes, I was thinking the same. It won't be a breaking change for most users though (as most users are using GCM or Web Push without VAPID), so the earlier we make the change the better it is. |
@gauntface @marco-c thanks for the feature... |
At the moment the signature of sendNotification results in code along
the lines of:
This could be simplfied to:
If we wanted to, we could move VAPID and GCM to be optional params
, as requested in #181:
What do you think @marco-c @nikhil32?
The text was updated successfully, but these errors were encountered: