SchildiChat / schildichat-android-next

Matrix client / Element X fork
https://schildi.chat/android/next/
GNU Affero General Public License v3.0
67 stars 6 forks source link

add/enable UnifiedPush support #2

Closed wrenix closed 8 months ago

wrenix commented 12 months ago

i have seen, that element-x has write some UnifiedPush code, but they do not build/use it.

i hope you find a way to get it running.

(sorry for the spam of issues)

SpiritCroc commented 11 months ago

Looks to me like it is built but not ready yet. Once it's ready I'll of course want to use it.

spaetz commented 8 months ago

Been merged as https://github.com/element-hq/element-x-android/pull/2248

It prefers Google push over UnifiedPush though, perhaps we want to switch priorities by switching out the priority indexes?

SpiritCroc commented 8 months ago

Don't worry, I will make sure it works fine on my setup, which uses a self-hosted NTFY and devices running MicroG. Actually I was planning to try out to go fully FLOSS this time (no extra FCM variant), where UP handles all the push including FCM as well, if it works: https://unifiedpush.org/developers/embedded_fcm/ I was just waiting for upstream to get the FOSS version ready before I get into tweaking things.

SpiritCroc commented 8 months ago

Element v0.4.2 merged.

Akselmo commented 7 months ago

Hi, for some reason SCX cant either find or register to NTFY on my phone. Bug or not yet done? If you need any logs just tell me what to do :)

SpiritCroc commented 7 months ago

Hi, for some reason SCX cant either find or register to NTFY on my phone. Bug or not yet done? If you need any logs just tell me what to do :)

UP is supported since v0.4.2. To debug:

  1. Try UP-Example from fdroid to see if it works with your NTFY
  2. Let someone send you a matrix message which should notify your device (e.g. a message in a direct chat that is not muted)
  3. Check Settings/Turtle Tweaks/Push info for details on what the app knows about your push setup
Akselmo commented 7 months ago
  1. Works, also the regular schildichat app works with ntfy
  2. All other apps get the notification
  3. Screenshot_20240218-190729

I host my own homeserver, can that affect things?

SpiritCroc commented 7 months ago

I host my own homeserver, can that affect things?

It shouldn't. Have you checked if it works on Element X >= 0.4.2? You can also send a bug report using the inbuilt option and I can check logs if there's something striking, if I find time

Akselmo commented 7 months ago

Seems the issue resolved itself.

For the record, i have version 0.4.4. Only thing I did was just wait long enough and it just started working out of the blue. Now it finds ntfy :)