KT Walrus Posted March 27, 2023 Posted March 27, 2023 (edited) Updated to iOS 16.4. Enabled push notifications in Invision Community web app. Received a notification about a new topic in a forum I follow. Tapped on the iOS notification on the lock screen on my iPhone. This opened the PWA but didn’t redirect to the new topic like tapping on the notification in the notifications list. The last page I had viewed before was still being shown. Is this a bug? Edited March 27, 2023 by KT Walrus
Marc Posted March 28, 2023 Posted March 28, 2023 Im not seeing any issues on my end, and have actually been using them all day
KT Walrus Posted March 28, 2023 Author Posted March 28, 2023 So, you are saying when you tap a notification for a new topic, the PWA opens the topic? Maybe my issue was only for followed forum notifications? Or, maybe since I was in the PWA just minutes before receiving the push notification and the PWA was still running in the background, that it didn’t process a redirect to the new content? It definitely didn’t work as I expected. I’ve only had that 1 push notification so not sure if this issue is just a one time glitch.
KT Walrus Posted March 28, 2023 Author Posted March 28, 2023 So, you are saying when you tap a notification for a new topic, the PWA opens the topic? Maybe my issue was only for followed forum notifications? Or, maybe since I was in the PWA just minutes before receiving the push notification and the PWA was still running in the background, that it didn’t process a redirect to the new content? It definitely didn’t work as I expected. I’ve only had that 1 push notification so not sure if this issue is just a one time glitch. Just noticed the setting for one email a day was checked so maybe the notification was for a digest email and not an immediate notification? Maybe need to link the iOS notification to the first topic in a digest email notification if digest is for only 1 topic?
Marc Posted March 29, 2023 Posted March 29, 2023 Digests are unrelated in any way to email, so you can safely exclude that one. I would need an example notification, what it did lead to etc.
Daniel F Posted March 29, 2023 Posted March 29, 2023 @Stuart Silvester found this this in the webkit bugtracker https://bugs.webkit.org/show_bug.cgi?id=252544#c18 SeNioR- 1
KT Walrus Posted March 29, 2023 Author Posted March 29, 2023 Changing setting to from once a day email to immediate didn’t do anything. When I tap an iOS Invision Community notification, it doesn’t redirect to the new topic. Am I the only one seeing this behavior?
Ryan Ashbrook Posted March 29, 2023 Posted March 29, 2023 No, see Daniel's post above yours. It appears to be a Webkit bug. SeNioR- 1
KT Walrus Posted March 30, 2023 Author Posted March 30, 2023 On 3/29/2023 at 12:38 PM, Ryan Ashbrook said: No, see Daniel's post above yours. It appears to be a Webkit bug. This appears to be working now. Did you fix anything on your side? Maybe it is working now for me since I was in the PWA a few minutes before tapping on the iOS notification. Not sure what will happen if I don’t use the PWA for a couple days and then tap an iOS notification.
KT Walrus Posted March 31, 2023 Author Posted March 31, 2023 It didn’t work this morning. Looks like if you have recently been using the PWA, it works and if you haven’t it doesn’t work. So, an iOS bug. Do you know how to report bugs to Apple?
Marc Posted March 31, 2023 Posted March 31, 2023 8 minutes ago, KT Walrus said: Do you know how to report bugs to Apple? https://developer.apple.com/bug-reporting/ SeNioR- 1
KT Walrus Posted March 31, 2023 Author Posted March 31, 2023 I didn’t work just now with the notification of your reply. So, I don’t know why the links worked yesterday and not today. 7 minutes ago, Marc Stridgen said: https://developer.apple.com/bug-reporting/ I think you will have to submit bug reports for your PWA. I’m not an Apple developer.
KT Walrus Posted March 31, 2023 Author Posted March 31, 2023 Is it possible that this is a bug in the Service Worker in the app and not a bug in iOS? I don’t understand why it sometimes works and most times it doesn’t work.
Marc Posted April 3, 2023 Posted April 3, 2023 As mentioned by my colleague, this is an bug in webkit, so its actually in neither the service worker, nor iOS
Solution KT Walrus Posted April 16, 2023 Author Solution Posted April 16, 2023 Found this thread on the topic. One developer posted a work-around by using event.notification.tag in the notification click handler. https://developer.apple.com/forums/thread/726793
Daniel F Posted May 7, 2023 Posted May 7, 2023 It seems this was fixed for an upcoming release https://github.com/WebKit/WebKit/pull/11848
Recommended Posts