I have some project that works with GCM to send web push (https://curiosity-driven.org/push-notifications), using tokens/endpoints that were collected from the browsers/users.
function subscribe() {
return serviceWorker.ready.then(function(registration) {
return registration.pushManager.subscribe({
userVisibleOnly: true
});
}).then(function(subscription) {
return subscription.endpoint; //Stored in DB
});
}
But in Firebase we also need some p256dh and auth keys to send notifications. Is there any way to get these keys from existing(old) GCM tokens/endpoints?