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

PWA Notification.permission Setting Not Persistent on iOS #165822

Open
cliffkujala opened this issue May 16, 2024 · 1 comment
Open

PWA Notification.permission Setting Not Persistent on iOS #165822

cliffkujala opened this issue May 16, 2024 · 1 comment

Comments

@cliffkujala
Copy link

Impacted versions:
v17 Odoo and iOS PWA

Steps to reproduce:
Use PWA on iOS. Accept Desktop Notifications. Open the PWA via a Push Notification, or after the PWA has been in the background for a bit of time, and then you are asked to allow Desktop Notifications again. You can also force this by just switching back and forth between light and dark mode. Enable permissions on either color scheme, then switch, and you will be asked again to enable Desktop Notifications.

Current behavior:
Whenever opening Odoo PWA by clicking on a notification, or if the PWA has been in the background for some time, the user is always asked to enable desktop notifications, even if they have already done so.

Expected behavior:
The users choice should be remembered. If they enabled notifications they should not be asked again.

Video/Screenshot link (optional):
This video shows the bug where the PWA asks for permissions when changing the color scheme
https://youtube.com/shorts/ljntL4A6jVQ?si=Bxv9kzearIFvJMPB

Support ticket number submitted via odoo.com/help (optional):
3933484

@cliffkujala
Copy link
Author

For information this is confirmed on even more devices now, and seems to be restricted to iOS only. It does not affect the PWA when running on Desktop Windows or Mac.

Verified the bug on:

  • iPad Air 4th Gen running iOS 16.6
  • iPad Air 4th gen running iOS 17.5
  • iPhone 14 Pro running iOS 17.5
  • iPhone 14 Pro on iOS 17.4.1
  • iPhone 15 Pro on iOS 17.4.0

Another video of the issue, but from iPad -> https://youtu.be/x4QZINqtTgU

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant