Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Push notifications for mobile #597

Open
losuler opened this issue May 29, 2021 · 2 comments
Open

Push notifications for mobile #597

losuler opened this issue May 29, 2021 · 2 comments

Comments

@losuler
Copy link
Contributor

losuler commented May 29, 2021

Problem

Currently when Convos is in the background on Android notifications don't appear which means the only way to know if you have notifications is to open Convos. As Convos can be installed as a PWA through Chrome or Firefox on Android, I think not having push notifications should be considered as missing an essential feature.

Solution

The best solution is to use the web push API[1][2] as it doesn't require setting up FCM (this is handled underneath by the browser[3][4], which itself uses FCM on Chrome or Autopush for Firefox and thus doesn't effect battery life), is an open standard and which creates native notifications on Android. This is currently how The Lounge has push notifications implemented[5].

Previous Issues

#312, #493.

[1] https://developer.mozilla.org/en-US/docs/Web/API/Push_API
[2] https://developers.google.com/web/fundamentals/push-notifications/how-push-works
[3] https://developers.google.com/web/fundamentals/push-notifications/faq#what_is_the_deal_with_gcm_fcm_web_push_and_chrome
[4] https://developers.google.com/web/updates/2016/07/web-push-interop-wins
[5] thelounge/thelounge#1124

@jhthorsen jhthorsen changed the title Push notifications for mobile Push notifications for Android May 29, 2021
@jhthorsen
Copy link
Collaborator

I changed the title, since this doesn’t work on iOS.

@losuler
Copy link
Contributor Author

losuler commented Feb 16, 2023

Thought I'd change the title back now, as it looks like Apple have finally implemented web push in iOS/iPadOS, it now being live in the 16.4 beta 11. Might be worth mentioning web push was also added to Safari on macOS mid last year2.

Footnotes

  1. https://webkit.org/blog/13878/web-push-for-web-apps-on-ios-and-ipados

  2. https://webkit.org/blog/12945/meet-web-push

@losuler losuler changed the title Push notifications for Android Push notifications for mobile Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants