element-hq / riot-android

A glossy Matrix collaboration client for Android
Apache License 2.0
1.4k stars 394 forks source link

Notification problems with F-Droid version (without GApps installed)? #1690

Open ghost opened 7 years ago

ghost commented 7 years ago

Hi,

at first: sorry for posting this request here in GitHub issue tracker. I'd prefer to request this in a (fommunity) forum but as far as I noticed Matrix/Riot.im don't have a forum at the moment.

My request:

Testing Riot.im on a Synapse home server (v0.23.1) with 3 users using the F-Droid App version (no GApps insatlled) we experienced notification problems for incomfing messages: sometimes there are notifications, sometimes not; sometimes not for all messages but just for one in a specific room (not for others).

What I've tried:

  1. Activated autostart (so Riot.im / Listening for events is listed in Android notification drawer).
  2. Even with activated autostart we started the app manually after an Android reboot.
  3. Reduced App sync time (from 600s to 60s).

My questions:

I) Are there any known bugs related to notifications with F-Droid version and no GApps installed? II) Is it mandatory to set an identity server to receive notifications properly? III) Are there any settings in Synapse homeserver.yaml to improve notification support?

Thank you for any help!

ylecollen commented 7 years ago

@saljut7 please send a bug report i could attach to this issue

ghost commented 7 years ago

@ylecollen sorry, what exactly do you mean? I thought posting this issue is a bug report... not?

Nostradamos commented 7 years ago

@saljut7 you can send a bug report from inside the app (just open the menu on the left, there you will find the menu point to do so). This provides more information about your system/app...

ghost commented 7 years ago

Thx, I've asked all my contacts with this problem to send a bug report with description:

system information for riot issue #1690 (missing notifications for f-droid version)
ylecollen commented 7 years ago

https://github.com/matrix-org/riot-android-rageshakes/issues/1339

ylecollen commented 7 years ago

https://github.com/matrix-org/riot-android-rageshakes/issues/1337

gradinaruvasile commented 7 years ago

This happened to me too. But i have GAPPS installed aswell. The Google Play version has working notifications - sounds, led and pop ups. They work in every circumstances. The F Droid version's notifications work when they feel like. Especially when the screen is off after one or 2 notifications they just stop. Also the LED is not working at all. I noticed that the app is running in the drop down notifications to prevent the system from killing it.

ghost commented 7 years ago

@ylecollen matrix-org/riot-android-rageshakes#1337 ? :)

Beside this I wanted to ask if anybody could try to answer me these two questions from my starting post:

II) Is it mandatory to set an identity server to receive notifications properly? III) Are there any settings in Synapse homeserver.yaml to improve notification support?

gradinaruvasile commented 7 years ago

II) Is it mandatory to set an identity server to receive notifications properly? III) Are there any settings in Synapse homeserver.yaml to improve notification support?

II) No. I have set my own server to the identity server (i have no such service installed) and notifications work properly on Android if you use the Google Play version of the app. III) I dont know exactly but since the Google Play version provides notifications, it seems to be related to the app itself. Maybe it relies on the proprietary Google services too much for notifications (other apps such as Conversations can do it properly even without the Googlw stuff).

ghost commented 7 years ago

@gradinaruvasile

II) I have set my own server to the identity server (i have no such service installed) and notifications work properly on Android if you use the Google Play version of the app.

I know but this is not my use case. But what do you mean with "I have set my own server to the identity server"?

gradinaruvasile commented 7 years ago

@saljut7

I know but this is not my use case. But what do you mean with "I have set my own server to the identity server"?

In the client there is the option to set the identity server and i filled in my own server's address there. But i have no identity service running.

ghost commented 7 years ago

In the client there is the option to set the identity server and i filled in my own server's address there. But i have no identity service running.

...reminds me on another thing: I could not set "nothing" for the identity server. Riot always said: "address has to start with https" or something. Was this the reason why you just set your synapse server as identity server as well?

gradinaruvasile commented 7 years ago

On Nov 3, 2017 6:44 PM, "saljut7" notifications@github.com wrote:

In the client there is the option to set the identity server and i filled in my own server's address there. But i have no identity service running.

...reminds me on another thing: I could not set "nothing" for the identity server. Riot always said: "address has to start with https" or something. Was this the reason why you just set your synapse server as identity server as well?

The main reason was to prevent any attempts of connections to outside servers.

ghost commented 7 years ago

The main reason was to prevent any attempts of connections to outside servers.

Sure, same for me. But for this way it would be much more convincing if one could just let the identity server field empty, wouldn't it? ;)

ghost commented 6 years ago

@ylecollen is it sill mandatory to start fdroid version manually after android reboot to receive push notifications like you said in https://github.com/vector-im/riot-android/issues/995#issuecomment-284710682 ?

The fdroid version needs to be launched once to receive notification.

gradinaruvasile commented 6 years ago

@r4dh4l I use the fdroid version and after reboot i did not manually start Riot, it started automatically (probably because it was running berfore reboot?)

giomfo commented 6 years ago

@r4dh4l you may enable the option "start on boot" in the application settings

ghost commented 6 years ago

@giomfo yes, "start on boot" is enabled.

A user with Fairphone2 (Fairphone Open) reports me that it is still necessary to start Riot manually.

ghost commented 6 years ago

(Sry for the OT comment but because I opened this issue I feel responsible to support it until it is solved and therefor I just wanted to say: Unfortunately I won't be able to contribute reports to the issue here anymore. I will close my GitHub account and will move to https://gitlab.com because of https://blog.github.com/2018-06-04-github-microsoft/. I personally don't want to support the https://en.wikipedia.org/wiki/Embrace,_extend,_and_extinguish strategy in anyway - I hope the Matrix/Riot development won't be affected by the M$-GitHub deal in any way and I try to contribute reports via rageshake if the Matrix team will stay in GitHub. Anyway: Thank you all for the community support here!)