-
-
Notifications
You must be signed in to change notification settings - Fork 750
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
iOS: UI not updating properly #267
Comments
Similar behaviour is seen on iPhone 6s, iOS 15.1. |
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... |
I think this is fixed by binwiederhier/ntfy-ios@9060af5, but I won't be able to confirm it until I do another build and people an try it out. |
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. |
This is not fixed. It's still happening in the wild. Sometimes even on my iPhone 7. I am completely clueless as to why |
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). |
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. |
Hello, I can confirm having this issue too with my iPhone 12 Pro Max iOS 14.4.1. Thanks. |
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! |
installed the latest and also only manual pulls/manual refresh show the new messages on iOS 16.6 |
Same here on iOS 16.6 iPhone 13. But i get this wierd behavior: iPhone: WebApp: I subscribed to ntfy.sh/ and everything works fine. 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. |
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 |
Still the same issue. |
Still same issue 17.2 |
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 |
📢 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 |
(Hopefully) fixed as part of v1.3 |
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. |
Still the same issue. |
Same here, worked for few months then fucked up
|
I'm happy to help get notifications working on iOS. It typically involves some back and forth, so Discord usually works better for chatting about the issues. But in summary, these are the things you need to do:
|
@wunter8 Thanks for the guide but this not fix the problem @lolzivkovic get. I have the same problem and it's seem to be the place to say that the problem is not fixed. I have read documentation and found that the problem is know, I just want to be sure that this problem is not lost in the univers. |
@wunter8 I am using docker for hosting, with docker compose enviroment variables. It works on android and it worked for iOS. I have proper permissions for folders/files. |
@AntoVie Can you describe the problem? Do you only get notifications when you pull to refresh? Do the notifications only say "new message"? |
@wunter8 The problem is that I only get notifications when I pull to refresh. No notification on my Iphone or somewhere else. I need to refresh the page and then the new message show. |
@AntoVie what do you mean by "no notification somewhere else"? Does the web app work okay (e.g., from a desktop/laptop or just browsing to the website on your iPhone)? |
@wunter8 Sorry it was no clear, there's no other notification on my cellphone. The web app work great. |
@AntoVie have you tried the PWA on iOS? That should be much more reliable. Follow these instructions to set up web push: https://docs.ntfy.sh/config/#web-push |
So the fix right now is using the PWA app instead of the actual app? |
@kWAYTV yes, the PWA works more reliably than the native app on iOS. And it has more features |
Thanks @wunter8, setting
This kinda sounded to me that the upstream server also receives the message ("poll this server for the actual message contents"), but then it also says it cannot ("prevent the upstream server and Firebase/APNS from being able to read the message"). But anyway, it works. I will, however, also check out your web app recommendation, even though the iOS app works now, as you say it is more reliable and has more features. Thanks regardless! |
@Thaurin the progressive web app (PWA) that I recommended above will only work on iOS >= 16.4 (at least for the background push notifications to work, which is kinda the whole point). Here's a simpled version of the iOS notification flow:
So, upstream ntfy does not see the message contents |
See, it's things like this that add up and slowly push me towards buying a new phone, but I find it such a waste to throw out a phone that handles 90% of my needs and still works perfectly fine...
That's interesting, so even if my default server in the app is configured as
Good to know, and thanks for the explanation. |
"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 #4 (comment)
The text was updated successfully, but these errors were encountered: