I have achieved a simple push notification using source code from here: [https://itnext.io/an-introduction-to-web-push-notifications-a701783917ce][1]
But I want to do more advance by sending push notification remotely to another computer using Chrome like Facebook and some others do.
Now I am able to register subscription and get the endpoint link like this:
{
"endpoint": "https://fcm.googleapis.com/fcm/send/cThXDSA40Mo:APA91bE7lTJvxlF52GsX6huXPogc7C-nAcCrX6r9WrMSAwWToz7UDexDnLnAJJdoG-FSbQfquR8bjpd5Oc_CZQYTHU12gF_7_YmdK06CV77uXhSB6M-6LkmdjMazU5MQisXgjyUEICEd",
"keys": {
"p256dh":
"BGaCEBZSsJoqLU_l1hFWpFRwYMH8dHPkfPrPfyO2Sev_ilBYfFwJ7w4W-ppwKmxdhNTcACbi3sf7f0qerSNmQBI",
"auth":"FPssMOQPmLmXWmdSTdbKVw=="
}
}
But I don′t know how to go forward with this. Still wonder if I need to own a server or not ?
question from:
https://stackoverflow.com/questions/65875549/web-push-notification-do-i-need-to-own-a-server 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…