ntfy icon indicating copy to clipboard operation
ntfy copied to clipboard

iOS: UI not updating properly

Open binwiederhier opened this issue 2 years ago • 5 comments

iOS 15.4.1
iPhone SE (2nd generation)

"As far as I can see - most things work as expected, but when the app is already open and is foreground - I can see push notification appear, but app not updates most of the time. Also when I open app from notification it sometime does not update and show latest messages. The screenshot is depicting such situation - the push notification on the top of the screen is actually 4th massage, but app UI still stuck at 3"

See https://github.com/binwiederhier/ntfy/issues/4#issuecomment-1133767150

binwiederhier avatar May 21 '22 23:05 binwiederhier

Similar behaviour is seen on iPhone 6s, iOS 15.1. The notification appears in the notification center but does not appear in-app. This can however be fixed by reloading the topic page.

rhld16 avatar May 22 '22 15:05 rhld16

I don't know the reason for why it's happening, but it seems like a solvable issue. It's quite tricky actually, because the notification is saved from the notification app extension, which is a different process than the main app, so we have to notify the main app and then update the views. The way I did manage to do that on my iPhone was a hack and could easily be a race condition that just happens to work on my device.

I'll figure it out...

binwiederhier avatar May 22 '22 15:05 binwiederhier

I think this is fixed by https://github.com/binwiederhier/ntfy-ios/commit/9060af51ef2c0ef5e38026b04fc9df3f9a0902a9, but I won't be able to confirm it until I do another build and people an try it out.

binwiederhier avatar May 24 '22 00:05 binwiederhier

I believe this is fixed in 1.1, see #4 to test the new version. Closing this for now until I hear more issues with this.

binwiederhier avatar May 29 '22 20:05 binwiederhier

This is not fixed. It's still happening in the wild. Sometimes even on my iPhone 7. I am completely clueless as to why

binwiederhier avatar Jul 12 '22 23:07 binwiederhier

Just wanted to confirm that this is still an open bug.

On an iPhone 12 pro, iOS 16.3.1.

I receive notifications but can't view any of the messages in the topic, regardless of however many times I refresh (pulling down on the topic).

Tylermarques avatar Feb 26 '23 19:02 Tylermarques

Same as above. I get a generic 'New notification' on SOME (not all) topics and messages. When I click on the notification, it takes me to the home screen, but not to the topic that it was about. If I attempt to refresh the topic, the message will never show up. I can verify that the message is sent through Desktop. iPhone 14 Pro Max iOS 16.5 and self-hosted.

reedhaffner avatar Jun 06 '23 02:06 reedhaffner

Hello,

I can confirm having this issue too with my iPhone 12 Pro Max iOS 14.4.1. Sometime it works when I receive the notification, when I click on it, it does take me to the app where the notification is showing without a manual refresh. But sometime it doesn't work without a manual refresh. If I'm already inside the app ui, and a new notification arrives, it doesn't reflect the new notification. I hope it can be fixed to make the functionality more consistent.

Thanks.

plia7 avatar Jun 25 '23 06:06 plia7

I have to confirm that neither do I receive notifications nor does the content of my app update without manual refreshing, regardless if I have it open or not (iPhone 13 Pro, iOS 16.5.1).

Love your work non the less!

Aarkon avatar Jul 03 '23 14:07 Aarkon

installed the latest and also only manual pulls/manual refresh show the new messages on iOS 16.6

eXistenZ0688 avatar Aug 31 '23 21:08 eXistenZ0688

Same here on iOS 16.6 iPhone 13. But i get this wierd behavior:

iPhone: When i send a notification from https://ntfy.sh/, i get a push notification as it should be. When i instead send a message from my own hosted server, i get the behavior like you all describe. My server is behind a nginx proxy for ssl certification.

WebApp:

I subscribed to ntfy.sh/ and everything works fine. When i subscribe to <myHostedServer>/ there is an infinite loading circle in the sidebar. The message also needs about a minute to show up in the sent messages.

I also recently watched the networkchuck video and he also installed it locally with a cloudflare secure tunnel. He seems to get it working quite seamlessly.

i think it is some kind of server issue so i will test different server settings the next days and will report.

Kzumelvin avatar Sep 01 '23 14:09 Kzumelvin

Unfortunately, the iOS app is very buggy. The PWA will give you a much better experience: https://docs.ntfy.sh/subscribe/pwa/

If you're self-hosting, follow these instructions to set up web push: https://docs.ntfy.sh/config/#web-push

wunter8 avatar Sep 01 '23 16:09 wunter8

Still the same issue. iOS 17.0.3 on iPad the same

Chiller2019 avatar Oct 06 '23 16:10 Chiller2019

Still same issue 17.2

kWAYTV avatar Nov 06 '23 10:11 kWAYTV

This is a known issues (https://docs.ntfy.sh/known-issues/), but we have a fix for this, which I hope we can release soon https://github.com/binwiederhier/ntfy-ios/pull/17

binwiederhier avatar Nov 06 '23 10:11 binwiederhier

This is a known issues (https://docs.ntfy.sh/known-issues/), but we have a fix for this, which I hope we can release soon binwiederhier/ntfy-ios#17

that's nice to hear! i hope to hear from that soon

kWAYTV avatar Nov 06 '23 10:11 kWAYTV

:loudspeaker: A new version of the ntfy iOS app is currently in TestFlight. This version (hopefully) fixes the issues with the UI not properly refreshing, as well as fixes for subscriptions "getting lost". It contains no other fixes. More to come. To test the app, please use this TestFlight link: https://testflight.apple.com/join/P1fFnAm9

binwiederhier avatar Nov 15 '23 21:11 binwiederhier

(Hopefully) fixed as part of v1.3

binwiederhier avatar Nov 28 '23 02:11 binwiederhier

I am experiencing same issue where only when I refresh notification they show up. Nothing happens unless I refresh. upstream-base-url is set and everything was working until recently. iOS Version: 17.4.1

lolzivkovic avatar Apr 10 '24 10:04 lolzivkovic