elixir-web-push-encryption
elixir-web-push-encryption copied to clipboard
Incorrect assumption about FCM endpoint
This code asserts that an auth key (GCM sender ID) is required when a push subscription is sent from FCM. However, this is not true because FCM fully implements VAPID, as can be read here: "With VAPID you no longer need to sign up for an account with GCM".
My suggestion therefore is to remove this function clause altogether, as well as this part.
Hi, thanks for reporting the issue. I suppose that was the situation when I first implemented this library but if it not required anymore this should indeed be fixed. It would be great if you had the time to send a PR with the changes you suggested. Thanks a lot.
Yes, only, this will effectively reverse #13 so I am curious why @splagemann fixed this in the first place...
I'm pretty sure that I had issues without an auth key. But I can check that again and I'm happy to have that removed.
I had issues with an auth key :-) Anyway I think it's possible to support both code paths. Could you check whether the auth key path works for you?
What is the status of this issue?