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

No notifications in Android app #1498

Closed
MarcS1975 opened this issue Jul 27, 2021 · 55 comments
Closed

No notifications in Android app #1498

MarcS1975 opened this issue Jul 27, 2021 · 55 comments

Comments

@MarcS1975
Copy link

Steps to reproduce

  1. sending talk message from User 1 to User 2
  2. No notification on User 2's phone

Expected behaviour

User 2 should get pop up notification

Actual behaviour

nothing happens

Device information

Device: Fairphone2/…
Samsung S10

Android version: 10/…
Amdroid 10

Talk version: 11.0.0
12.0.1

Server information

apache 2.4

Nextcloud version: (see admin overview page: /index.php/settings/admin/overview)
Nextcloud server 22.0.0

Talk version: (see apps admin page: /index.php/settings/apps)
12.0.1

Custom Signaling server configured: yes/no and version (see talk admin settings: /index.php/index.php/settings/admin/talk#signaling_server)
no
Custom TURN server configured: yes/no (see talk admin settings: /index.php/settings/admin/talk#turn_server)
no
Custom STUN server configured: yes/no (see talk admin settings: /index.php/settings/admin/talk#stun_server)
no

Server log (data/nextcloud.log)

nextcloud log attached

nextcloud.log

@MarcS1975 MarcS1975 added 0. Needs triage bug Something isn't working labels Jul 27, 2021
@bugbountyguy
Copy link

bugbountyguy commented Jul 28, 2021

Just wanted to plus one this. My android talk app has stopped sending notifications to my phone. I do daily updates on the server so I'm not sure if that's related, or if it's the android app after a recent release, but something definitely busted.
Android 11,
Nextcloud running in Docker using apache and latest image available (Nextcloud 22.0.0)
Talk App v12.1.2

@penguin86
Copy link

Just to say that notifications seems to depend on the Google Services framework, thus not working on AOSP or non-google devices.
I found this notification app stub here, but ATM the notifications are not clickable, I'm trying to figure out the simplest way to generate an Intent to open the relevant apps.

@bugbountyguy
Copy link

I do have the Google play services on mine and working and haven't made any changes to that recently. Notifications for talk has been working on my phone for the past year or two since I first used it. The only thing I can think of is the Google framework was a recent addition and somehow isn't working. But other apps on my phone that also depend on it work fine with notifications.
Interestingly one of my chats did give me notifications today, but not the others I expected any from. Seems to be selective or something.

@MarcS1975
Copy link
Author

MarcS1975 commented Jul 31, 2021

Yes - i also have notifications failing for 90% of users/chats. But then some random users work sometimes.
I have not changed anything in my Google Service framework and all other chat apps deliver notifications 100% reliably.

@bgbearcatfan
Copy link

I replied at the previous thread as well (https://help.nextcloud.com/t/nextcloud-talk-push-notifications-not-working/120873/6). But just want to chime in saying I'm having the same issues as well. NC 22.1.0, android talk 12.1.2, using Pixel 4XL.

@Bl4DEx
Copy link

Bl4DEx commented Aug 10, 2021

Hello,

I also want to report my test results:

Nextcloud Server: 21.0.3
Nextcloud Talk: 11.3.1

Only two users in the nextcloud network:
Talk iOS (12.1.0)
Talk Android (12.1.2) (Xiaomi Mi 9T Pro; Android 11; Power saving Mode disabled for Talk)

Talk iOS works perfectly fine.
Talk Android is having problems with the push notifications. It seems to work most of the time but if Talk is closed for a while (some hours) , there are no notifications. Re-open the app does not enable the notifications. The only workaroud for me is to go to the Android settings of Talk and disable and enable the push notifications.
It works fine afterwards.

I was using Talk Android 11.x for several months and never experienced this behaviour with this phone.

Is there any useful testing strategy I could do to help find the problem?

@MarcS1975

This comment has been minimized.

@Valdnet
Copy link
Contributor

Valdnet commented Aug 10, 2021

I confirm that PUSH notifications on Android 10 are also not always received.

App:
Nextcloud 22.0.0
Talk 12.0.1
Talk Android 12.1.2

@bgbearcatfan
Copy link

Android talk app 12.2.0 has the same issue.

@dmanea28
Copy link

dmanea28 commented Sep 3, 2021

Same issue for me for Talk version 12.2.1

@bugbountyguy
Copy link

bugbountyguy commented Oct 20, 2021

Edit: "Fix" was invalid, deleting comment

@MarcS1975
Copy link
Author

MarcS1975 commented Oct 20, 2021 via email

@Valdnet
Copy link
Contributor

Valdnet commented Oct 20, 2021

In my case, when I am not receiving PUSH notifications from one of the users, I simply "refresh" the chat setting by re-enabling the "Important conversation" setting. Notifications come back immediately for that conversation.

I wrote on purpose that I "refresh" because this setting Android Talk does not remember as in "Mute Calls".
Problem described here: #1312.

It seems that the current significant user problems are not that important to developers.

@bugbountyguy
Copy link

After waiting forever and getting nowhere... I played around quite a bit with my apps. I think I got it.
............

Sure enough after a few hours it went silent again 😢 My comment is invalid

@MarcS1975
Copy link
Author

MarcS1975 commented Oct 20, 2021 via email

@bgbearcatfan
Copy link

bgbearcatfan commented Oct 20, 2021

I stood up a temporary fresh install of Nextcloud 22.2.0. After that, I reset 3 of my families Pixel 4's (all running android 11) back to factory defaults. I then reinstalled the Nextcloud talk app from the Play Store, and was sure to follow their guide at, https://github.com/nextcloud/talk-android/blob/master/docs/notifications.md.

After doing the above steps, the problem still persists. It's not an issue with our devices or configurations, something is just simply broken in the app.

If a dev or anyone troubleshooting further would like any info/logs/etc., please reach out to me, as I'd love to help fix this however possible.

@bugbountyguy
Copy link

bugbountyguy commented Oct 20, 2021

No idea if this is related, but this is showing up in my logs every time I send a "test" message:
message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead."

https://docs.nextcloud.com/server/latest/developer_manual/app_development/bootstrap.html

If so, maybe the fix is on the "spreed" app itself and not here, especially considering ios and android both have the problem?

It could also be that the mobile clients are no longer maintaining a websocket connection, pinging, reaching google play services, or however they work (whether that's at fault of a deprecated Bootstrap or not, idk)

@MarcS1975
Copy link
Author

MarcS1975 commented Oct 20, 2021 via email

@bgbearcatfan
Copy link

Doing my best to keep this thread alive. I just updated a couple of our Pixel 4XL's to android 12, and so far it appears that notifications are working again. I still have a lot more testing to do, but so far, the results are promising with Android 12.

@MarcS1975
Copy link
Author

MarcS1975 commented Oct 29, 2021 via email

@bgbearcatfan
Copy link

Unfortunately, notifications are still sporadic. Good luck everyone. This problem dates back to July, and I am not willing to wait around anymore. Will be migrating to a different cloud/chat option. Hope you all get it straightened out at some point!

@bugbountyguy
Copy link

As of about 3 nights ago, my notifications spontaneously started working on their own again. I have no idea what changed, but I run updates on my system every night and am thinking an update was in that fixed this... Maybe. I recommend anyone else having this issue to try and update their nextcloud instance to the latest version and see if it randomly starts working for you as well. Either the update fixed it or I just got lucky this time around? Lol

@MarcS1975
Copy link
Author

MarcS1975 commented Nov 13, 2021 via email

@bugbountyguy
Copy link

Just checked, looks like I'm on nextcloud 22.2.0. There's a patch version I think that Docker hasn't picked up on yet or something but that's what it looks like the last update pulled in.

@MarcS1975
Copy link
Author

MarcS1975 commented Nov 13, 2021 via email

@bugbountyguy
Copy link

Well, damn :( was hoping the new minor version had something. I'll keep an eye out for if they stop working again lol. But for the past couple of days I've been good... I'll dig deeper into my logs later too and see if I can pinpoint any changes that might help.

@bugbountyguy
Copy link

I dug around the logs and came up short. I checked all my Nextcloud logs (filtering out common deprecated noise and whatnot) for the past 2 weeks. There was nothing different or odd that stood out to me, personally.

Here are some things that might be worth comparing with what I have running, but may not necessarily mean anything:

PHP version 8.0.12
mysql version 10.5.9
Apache info:
  Server version: Apache/2.4.51 (Debian)
  Server built:   2021-10-07T17:49:44

Nextcloud Version: Nextcloud 22.2.1
Nextcloud Talk Version: 12.1.2	
Android Talk Version: 12.2.1

It appears there was also a docker-compose update on my system... Not sure if that's even relevant, but it did happen around the time notifications began working. It was version 1.29.2-r1. Lastly, I also had a firewall update so if you're behind a custom firewall (pfsense, opnsense, ipfire, etc.) maybe update that and see if it helps. Again, doubtful that had anything to do with it, but doesn't hurt to update anyway.

That all being said, I'm still getting all my notifications. I did no other Android software/system updates recently (those are manual instead of automatic), or at least not in the past week.

If none of this info helps, then I'm really not sure what it could have been. :( Just got lucky I guess.

@w202mg
Copy link

w202mg commented Nov 17, 2021

Same issue here. I noticed that I do not get the notifications if I'm logged in with 2 accounts on my phone. once I delete the 2dn one and have only one left it works well. don't know if I have to open a separate issue or not.

@bugbountyguy
Copy link

bugbountyguy commented Nov 21, 2021

Just like how they spontaneously started working, they have now spontaneously stopped working again, LOL. Back to square one for me, too.

Same issue here. I noticed that I do not get the notifications if I'm logged in with 2 accounts on my phone. once I delete the 2dn one and have only one left it works well. don't know if I have to open a separate issue or not.

That's an interesting thing to notice. Unfortunately, I don't think I'm logged into more than one device that often. Unless it takes priority to the latest device that logged in and uses that for notifications... I'mma play with that idea to see if it helps me too.

@jbrockc
Copy link

jbrockc commented Dec 26, 2021

I upgraded my server from Debian 10 to Debian 11, and now my notifications are working again. I did not change any software on my phone which runs Lineage OS. My wife has a Pixel phone with the stock OS, and her notifications have been working all along. On my server, I am running the snap package.

@bugbountyguy
Copy link

I upgraded my server from Debian 10 to Debian 11, and now my notifications are working again. I did not change any software on my phone which runs Lineage OS. My wife has a Pixel phone with the stock OS, and her notifications have been working all along. On my server, I am running the snap package.

My notifications have also been working the past few weeks too. About a week or so after the last post I made, they started working again and have been since then... Not sure if there was an update to the docker container that Nextcloud provides, or the newest Nextcloud finally fixed it (Talk app also updated on the phone, so maybe that?).

@Mer0me
Copy link

Mer0me commented Jan 4, 2022

Nextcloud Hub II (23.0.0)
NC App Talk 13.0.1
Android App 13.0.0 on a e/os/ Fairphone

Notifications are not working at all on my phone and are randomly working on the browser (Firefox 95.0.1 / Xubuntu). They work well on the same conversation on an ios device.

@Mer0me
Copy link

Mer0me commented Jan 11, 2022

Thanks to this reddit thread I finally get notifications on my (fair)phone without Google Services by downloading the APK on apkpure website. The F-Droid package seems to be incomplete and notifications didn't work with it.
I can now hear and see call notifications and other text message notifications on the phone.

@nextcloud nextcloud deleted a comment from MarcS1975 Jan 11, 2022
@mahibi
Copy link
Collaborator

mahibi commented Jan 12, 2022

@Mer0me please note that the F-droid package doesn't contain Google Play services so Notifications won't work.

To check why notifications don't work please always use this checklist:
https://github.com/nextcloud/talk-android/blob/master/docs/notifications.md
(anyone who can contribute knowledge to the list is welcome to do so)

Furthermore, please update to spreed 12.2.2, as the fix nextcloud/spreed#6300 should make the notifications more reliable.
Anyone who is on spreed >=12.2.2 and made sure he followed the checklist and still has problems with notifications, feel free to let us know in this thread.

@apady
Copy link

apady commented Feb 10, 2022

Device information

Huawei P40 Pro (China mainland HarmonyOS 2.0.0),
XiaoMi 9 Pro ( Android 10, With and without google moblile service)

Server information

Nextcloud version: Nextcloud Hub II (23.0.0)

Talk version: 13.0.1

Custom Signaling server configured: no

Custom TURN server configured: yes

Custom STUN server configured: yes

Test Details

When launching Talk(For Android) APP(Nextcloud For Android APP is alike) for the first time, it will display a small message on the screen,saying "the system push notification was disabled", and then I can not get any system push notification when others send message to me, neither chat nor mobile call message, unless keep the Talk APP running on the top of screen, then a blue icon emerges on the tab, displayging the number of unread message.

The system push notification is already enabled in test device's system setting, and I also tyied the method mentioned above( Talk Android Notification Doc), but it dose not work.

When running php occ notification:test-push command on server or or sending a message using spreed from one user to the target user, the browser , nextcloud talk desktop client and iOS Talk APP can get notification after a whle, but all the Android device dose not get any system push notification from Talk.

@JimKarvo
Copy link

JimKarvo commented Apr 4, 2022

Are there any updates?

There is something weird with notifications.
Yesterday morning I installed the nextcloud to new server, tried the Android push notifications and worked like a charm.

Tonight, after 36 hours of first installation, I decided to reinstall next cloud from the scratch again.
Same server, same ip, same domain name.
But this time notifications are not working.

Till now I thought that I had problem with my old next cloud installation (v21).

@bgbearcatfan
Copy link

@JimKarvo , I understand your frustration. Luckily for myself, I found that most issues went away after i upgraded NextCloud to version 23.

However, one thing i noticed.... If you have the nextcloud web interface opened up on a desktop/laptop, even if the focus ISN'T on the nextcloud browser tab, AND, even if the talk app is NOT opened in the web interface (for example, if you have the "files" or "calendar" app opened instead), it prevents a push notification from being sent to my android phone. Even WITHOUT the conversation being marked as read, simply being logged into the web interface is enough to disable android push notifications for talk.

It's one of the many strange behaviors i have noticed over the last year. I hope this helps...

@JimKarvo
Copy link

@JimKarvo , I understand your frustration. Luckily for myself, I found that most issues went away after i upgraded NextCloud to version 23.

However, one thing i noticed.... If you have the nextcloud web interface opened up on a desktop/laptop, even if the focus ISN'T on the nextcloud browser tab, AND, even if the talk app is NOT opened in the web interface (for example, if you have the "files" or "calendar" app opened instead), it prevents a push notification from being sent to my android phone. Even WITHOUT the conversation being marked as read, simply being logged into the web interface is enough to disable android push notifications for talk.

It's one of the many strange behaviors i have noticed over the last year. I hope this helps...

Cause I spend a lot of hours to check what goes wrong even with new installation, the problem exists only if user selected another language than English.

@TommySchwartz
Copy link

Where do you have to set the language to english? Talk app, nextcloud profile, nextcloud server, phone system, phone keyboard?

Brittish english, US english?

Can't get it to work 😔

No notifications on Android since I switched to Nextcloud AIO. iOS and firefox on computers work fine.

@MarcS1975
Copy link
Author

MarcS1975 commented Jun 27, 2022 via email

@MarcS1975
Copy link
Author

MarcS1975 commented Jun 27, 2022 via email

@mnlipp
Copy link

mnlipp commented Jul 10, 2022

I've just run into the notification problem after installing v14.0.2 from f-droid. Installing from google play "fixed" it.

@JimKarvo
Copy link

I've just run into the notification problem after installing v14.0.2 from f-droid. Installing from google play "fixed" it.

Version from Google okay includes the libraries for push notifications. (Push notifications working via Google firebase).

@mrpete69
Copy link

mrpete69 commented Aug 9, 2022

I just want to add a possible reason for missed notifications. I use pihole as adblocker at home where my nextcloud instance also is located. When collector.github.com was blocked, notifications weren't sent, but unblocking that address solved my problem.

@timkrueger
Copy link
Contributor

timkrueger commented Aug 16, 2022

I think because of the age of this ticket the reasons why notifications a different points was not working differs.

In general push notifications are only working if you install NC Talk for Android from the GooglePlay store.

Please feel free to open a new issue if notifications issues still existing.

@AgentZman
Copy link

Mine is failing notifications for Samsung only.
All androids and Mac notifications are working for users, but just not Samsung. I have been all over this phone and do not know why.
If I actually open the Talk app on Samsung then a notification comes in. This is very strange.
Also NO notification (1) next to the icon until after I open the Talk App.

What could cause this. Likely Samsung related but also annoying since family new phones are samsung.

@timkrueger
Copy link
Contributor

Mine is failing notifications for Samsung only. All androids and Mac notifications are working for users, but just not Samsung. I have been all over this phone and do not know why. If I actually open the Talk app on Samsung then a notification comes in. This is very strange. Also NO notification (1) next to the icon until after I open the Talk App.

What could cause this. Likely Samsung related but also annoying since family new phones are samsung.

Did you have a look at our notification guide?

If that not helps, please open a new issue.

@TommySchwartz
Copy link

I only have problem with notifications for the Talk-app itself on android.

Notifications for Talk:
Desktop - Firefox macOS - Works (messages go via nextcloud notification?)
Desktop - Firefox Windows - Works (messages go via nextcloud notification?)
Desktop - Edge Windows - Works (messages go via nextcloud notification?)
Desktop - Nextcloud Windows - Works (messages go via nextcloud notification?)
Desktop - Nextcloud macOS - Works (messages go via nextcloud notification?)

Mobile - Talk iOS - Works
Mobile - Firefox LineageOS - Works (messages go via nextcloud notification?)
Mobile - Nextcloud LineageOS - Works (yes I have the gplay or google play store version)
Mobile - Talk LineageOS - NOT working (yes I have the gplay or google play store version)

As you see in the list above, even the Nextcloud app on android get talk notifications, but not the talk app itself!

I have tried the notifications guide, same behavior. Push notifications get sent to all other devices but not to the android talk app.

This problem av been over a year! I have stopped trying different versions and trying nightly builds in hope to get this fixed.
Can only conclude it is the talk app that is the problem.

@MarcS1975
Copy link
Author

MarcS1975 commented Oct 14, 2022 via email

@Samael774
Copy link

Hi. No notifications on Talk 17, latest SNAP Nextcloud, Xiaomi 11T Pro with all permissions and notifications enabled for Talk. Same thing my other phone Samsung Galaxy Note10.

@MarcS1975
Copy link
Author

MarcS1975 commented Jul 16, 2023 via email

@DanielSiepmann
Copy link

#1498 (comment) did the trick, I installed via another store. Using Aurora Store fixed the issue. I could than head over to the notifications settings of the app within the system settings and could activate them.

I've the feeling notifications take some time until they arrive. They aren't as fast as other chat solutions. But that's fine I guess.

@faxotherapy
Copy link

faxotherapy commented Nov 4, 2023

Also for me too. I installed Talk from the F-Droid store. Notification activated all round. Still not working on Android/Pixel.

Also, I installed from Auroa Store. I did hear one notification, then no longer notifications at all.

I'm simply not warned at all when receiving a message.

App put on Unrestrictive battery usage.

@hoshi411
Copy link

hoshi411 commented Feb 4, 2024

Genius idea! Why not make notifications work by default and give the users the option to opt out if they want to? I'm so tired of notifications not working and having to track down some obscure forum and tutorial to get the basic functionality. NOTIFICATIONS should be the default , NOT the fringe extra feature.

@jbrockc
Copy link

jbrockc commented Feb 4, 2024

I have been using ntfy for notifications using the Talk F-Droid version. I just posted a video about what I do. I hope it can be of help.
https://youtu.be/0a6PpfN5PD8?si=1igz3kB6Rk2fS7wz

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

No branches or pull requests