nextcloud / talk-android

📱😀 Video & audio calls through Nextcloud on Android
Other
529 stars 238 forks source link

Notifications not showing up in Fairphone 4 #3143

Closed YoannPa closed 9 months ago

YoannPa commented 1 year ago

Steps to reproduce

Once the app connection to the server is configured, and all conversations are loaded correctly, there is no notification about a new message in a conversation. However when I open the app manually, I can see on each conversation listed if there is a new message or not, and if so how many.

Expected behaviour

Notification should show up when I receive a new message in a conversation.

Actual behaviour

No notification pop up on the screen of my phone when the app is closed.

Device brand and model

Fairphone 4

Android version

12

Nextcloud Talk app version

17.0.0

Nextcloud server version

26.0.2

Talk version

16.0.4

Custom Signaling server configured

None

Custom TURN server configured

None

Custom STUN server configured

None

Android logs

No response

Server log

No response

Additional information

No response

AndyScherzinger commented 1 year ago

@YoannPa are you using the Google Play or f-droid version of the app? Just asking since f-droid doesn't support push notifications.

YoannPa commented 1 year ago

@AndyScherzinger I installed it from the Google Play store.

mahibi commented 1 year ago

Please check the settings documented in https://github.com/nextcloud/talk-android/blob/master/docs/notifications.md

YoannPa commented 1 year ago

Please check the settings documented in https://github.com/nextcloud/talk-android/blob/master/docs/notifications.md

@mahibi Everything is setup correctly on the Fairphone 4 from the documentation you shared. On the server side, since there are other users, and for most of them the notifications work fine, I suppose the issue is really coming from the Fairphone 4.

Before that, I was using a Fairphone 2. And I remember for the first 6 months using the app Nextcloud Talk on this smartphone, I had the same issue. Then, following a software update (Android update I presume), Nextcloud Talk started to show notifications. My guess is that what is happening on the Fairphone 4 is somehow similar : maybe it is a software incompatibility.

mahibi commented 1 year ago

@YoannPa good to know. So it's original Android? Asking because it's important that Google play services are available..

YoannPa commented 1 year ago

What do you mean by "original Android" ? Here is a screenshot of the details of Android on my Fairphone 4: Screenshot_20230710-161842 "it's important that Google play services are available": Should I check for something specific ?

mahibi commented 1 year ago

What do you mean by "original Android" ?

just to make sure youhave no alternative OS installed, like grapheneOS or lineage etc. which would come without google play services. So if Google Play Store is avialbale for you everything should be fine from this side. But not sure what goes wrong.. Would be interesting if other users with FP4 report the same issue..

YoannPa commented 1 year ago

Fery few people are using the FP4. Do you think I should open an issue of the Fairphone forum ?

mahibi commented 1 year ago

Fery few people are using the FP4. Do you think I should open an issue of the Fairphone forum ?

sure that could be worth a try

YoannPa commented 1 year ago

@mahibi I created an issue on Fairphone support forum here: https://forum.fairphone.com/t/fairphone-4-nextcloud-talk-android-app-notifications-not-showing-up/97616

Let's see how it goes and if it provides any answer.

YoannPa commented 1 year ago

@mahibi Actually I forgot to mention the obvious: notifications work perfectly well for all the other apps installed on my Fairphone 4.

testman42 commented 1 year ago

Can confirm, notifications are not working on LineageOS (without gapps), despite conversation being set to "Always notify".

manu-p commented 1 year ago

Notifications are not working on a FP3+ running LineageOS + MicroG 20 (android 13) and android NC Talk 17.0.2 from Google Play Services via Aurora Store. Notifications are going fine with other chat apps such as Signal and/or Telegram.

cue108 commented 1 year ago

I just installed the Google Playstore version of Talk via APK-Mirror on my Fairfone 4 which I completely ungoogled by installing iode´ on it. It uses microG Services Core version 0.2.28.231657-28.

Checking on the server side with:

$ php occ notification:test-push --talk userName
Trying to push to 1 devices
.
.

Also revealed that there is a connection other than with the F-Droid FOSS version of the App. I needed to make a test call on the app in order to get the notification permission enabled on the phone while the app was receiving a call...

Anyway, everything works just fine with Nextcloud Talk 17.0.2 here now! May it help whom it might concern.

Remains my question to what degree this is a privacy concern? I simply don't know enough to reasonably estimate it.

YoannPa commented 1 year ago

Checking on the server side with: $ php occ notification:test-push --talk userName Trying to push to 1 devices . .

Since I am using the snap version of nextcloud server I used a slightly different command to test what you recommend. From the server side I did: sudo nextcloud.occ notification:test-push --talk username

Which printed:

Trying to push to 2 devices

Language is set to fr
Private user key size: 1704
Public user key size: 451
Identified 1 Talk devices and 1 others.

Device token:64

Following this I received a test notification on the PC web browser interface of the user account. But no notification at all on my Fairphone 4 from the Android Nextcloud talk app. As far as I am concerned, the issue remains on Nextcloud Talk v17.0.2.

Remains my question to what degree this is a privacy concern? I simply don't know enough to reasonably estimate it.

@cue108 Could you elaborate ? I don't understand what you mean.

cue108 commented 1 year ago

@YoannPa The NC server side command is useful to see whether a device is known to push notifications to on the standard server side notification implementation. However, I am also using UnifiedPush provider on the server side to manage notification myself in conjunction with the Adndroid Next-Push app. https://github.com/UP-NextPush/android

That way I get at least all notifications pushed to the Nextcloud Android App under the menu item Notifications.. Unfortunately Nextcloud-Talk notification will not be handled by this solution and the FOSS Version of Talk is silent on chat messages and calls.

Having Talk installed as a FOSS version and NOT using Google's PubSub message broker infrastructure makes Talk rather useless to me at the moment. So I felt forced to use the Google's Playstore version of Talk to receive notification messages about chat messages on my Android phone.

Now, Google Cloud Messaging (GCM) and its successor Firebase Cloud Messaging (FCM) in which Google's cloud infrastructure acts as the message broker receiving messages from publishers and distributing them to all subscribers who have subscribed to the corresponding topics serves as a perfect access point to harvest profiling meta data on Google's side.

I would love to simply bypass Googles services all together especially when I do host a cloud solution myself already in order to be un-googled to begin with.

Even if the notification payload would be encrypted the notification type with timestamp still provides useful data for a data-center like Google to be linked to a lot of other statistically aggregated data in order to harvest information.

Mer0me commented 11 months ago

Using Fairphone 3+ under e/os, Talk notifications are working well if I use the "official" play store APK.

YoannPa commented 11 months ago

As far as I am concerned, the issue remains on Nextcloud Talk v17.1.0 using a Fairphone 4.

YoannPa commented 9 months ago

Now using:

I am finally receiving notifications on my Fairphone 4! Will confirm in the coming days before closing the issue if everything works fine.

YoannPa commented 9 months ago

Notifications are showing up correctly now. I close the issue.