Giter VIP home page Giter VIP logo

lahiiru / browser-push Goto Github PK

View Code? Open in Web Editor NEW
73.0 6.0 21.0 1.01 MB

Complete workout and guidelines to add web push notifications support for your webapp without third-party notification provider

Home Page: https://lahiiru.github.io/browser-push

License: GNU General Public License v3.0

Java 31.64% PHP 12.84% HTML 16.35% JavaScript 39.17%
notifications webapp tutorial push-notifications web-app safari example web-push push-api safari-push-notifications

browser-push's People

Contributors

dependabot[bot] avatar lahiiru avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

browser-push's Issues

Doc fails to explain the mechanism properly.

Awesome project - small problem: The doc ( https://lahiiru.github.io/browser-push/ ) says:-

" Those are delivered to a web browser.  "

Which is not a helpful thing in an explanation right after neatly explaining the other kind of push well (mobile apps).

Full context:

" Mobile push notifications can be sent from your back-end to some device owner’s notification service such as Google’s FCM or Apple’s APNS. Whenever the recipient device has the internet connectivity, pending messages are fetched from device owner’s notification service and displayed to the user. " - awesome!
" Web push notifications or browser push notifications are somewhat different. Those are delivered to a web browser. " - um, yeah, we know that - but how ? Does the browser poll something looking for these? What? When? How??

Thanks!

getting 400 for chrome same is working on mozilla

hi i am getting two different subscription object for chrome and mozila

for chrome:
{
"endpoint": "https://fcm.googleapis.com/fcm/send/cp6K0Ufqlfo:APA91bGpukqdUgmZEmDahqVcx8f…A-aX1OJLchLsrXtSAwzuq0wZzTux_tKGvbqNyQ1TrV79Z-NwwxW7BfIZQd8bsGV_pdPCn5xUOD",
"keys": {
"p256dh": "BLFlgFarRcRgt3zXbrP5LdmVfsL-QiodUIdcAIdScFF3kI3PoPWcru68lRpcN3WDyx47LOmCPwCUPbgmAqJqHKk=",
"auth": "Xvc64Extsq51hnIIFxfqsg=="
}
}

for mozilla:
{
"endpoint": "https://updates.push.services.mozilla.com/wpush/v1/gAAAAABYjzN0O5fiP10VARKXLu1hqMX7Uxu5qNAbM6a3fijF3ioU7lEOCVL1QcYvrk5DsOdC-lj_XkHm9_ylWmz70Dkld1hwUUrorYSUje1nMsZdYMcgL0dZTh1MecyIrOW7poIUf8Wo",
"keys": {
"auth": "11vt9uvVb5iGrilzhqvovQ",
"p256dh": "BGp9L6pE4w6UuAF4AG-SH7vFN5_WqgQAN6hCo21AZxi8me4vhzaSok6USi2KfTq8pBKtTHeGuOGXwlNAZO3KkzE"
}
}

as it can be seen in chrome subscription i am getting == sing at end of p256dh and auth but in mozilla i am not getting like this

and now for chrome it stop working for mozila its working

is it possible to unsubscribe in safari?

i m working based on your code. For now front-end part.
I saw there is a missing part in safari.

You execute the subscription directly but if i want unsubcribe the notification using a html button as is possible in notsafari browsers? In rest api there is delete api. In js exists a api for deleting a pushid?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.