What is a reasonable alternative to push notifications for web apps on iOS that does not require a native app install?

Viewed 445

There are many questions about getting push notifications to work for web apps on iOS, eg. here. As of today it seems that it mainly (always) doesn't work because of the iOS browsers' lack of support for the Push API (likely because Apple wants people to build native apps instead).

Since I still want to continue building a web app I'm looking for alternative ways to solve this requirement/feature (notify the user that something has happened server side even though they don't have the web app active on their screen. This given they do have it open in a browser tab though).

So what is another way to inform a web app user that something has happened server side? I encourage you to think outside the box.

PS. Sort of off topic but my tech stack is NextJS and Firebase (Firestore, Auth, Cloud Messaging)

1 Answers

As long as the app is running in an open tab, how about Server-sent events or WebSockets?

Server-side events: "To enable servers to push data to web pages over HTTP or using dedicated server-push protocols."

Related