Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted March 27, 20232 yr 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, 20232 yr by KT Walrus
March 28, 20232 yr Community Expert Im not seeing any issues on my end, and have actually been using them all day
March 28, 20232 yr Author 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.
March 28, 20232 yr Author 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?
March 29, 20232 yr Community Expert 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.
March 29, 20232 yr @Stuart Silvester found this this in the webkit bugtracker https://bugs.webkit.org/show_bug.cgi?id=252544#c18
March 29, 20232 yr Author 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?
March 29, 20232 yr Community Expert No, see Daniel's post above yours. It appears to be a Webkit bug.
March 30, 20232 yr Author 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.
March 31, 20232 yr Author 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?
March 31, 20232 yr Community Expert 8 minutes ago, KT Walrus said: Do you know how to report bugs to Apple? https://developer.apple.com/bug-reporting/
March 31, 20232 yr Author 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.
March 31, 20232 yr Author 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.
April 3, 20232 yr Community Expert As mentioned by my colleague, this is an bug in webkit, so its actually in neither the service worker, nor iOS
April 16, 20232 yr Author Solution 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
May 7, 20232 yr It seems this was fixed for an upcoming release https://github.com/WebKit/WebKit/pull/11848