Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I set the app name that shows up in a PWA web push notification?

I'm trying to figure out how to set the app name of what shows up in a PWA web push notification.

The PWA already shows up in the apps installed list and shows up on the home screen with the app name.

It can receive web push notifications, but what I'm curious about is how to change the part that says Chrome and myexamplesite.com (blurred in the image below)

Normally the notification will show something like Chrome ● myexamplesite.com ● now

I know that the Chrome badge can be set with the badge argument, but what about the part that says Chrome and the website url? Can that be somehow set to be something like My App Name?

web push notification

like image 441
space_food_ Avatar asked Nov 14 '25 10:11

space_food_


1 Answers

I guess the Chrome part is not changeable since it comes from the client browser. And the title seems to come from your App name.

like image 141
Nathan Rodet Avatar answered Nov 17 '25 08:11

Nathan Rodet