matrix-org / sygnal

Sygnal: reference Push Gateway for Matrix
Apache License 2.0
167 stars 148 forks source link

ios notification -fluffyChat #324

Closed Sphinix1 closed 2 years ago

Sphinix1 commented 2 years ago

hi , i am using sygnal (self-hosted) with fluffychat. I dont seem to have notification pop-up unless fluffychat(ios) is running on the foreground. i have tried all the suggestions i could find . what am i missing . here is my sygnal.yaml

apps:

    im.cvccc.cvcvc:
        keyfile: /data/AuthKey_zzzzzzzzz.p8
        team_id: xxcccccc
        key_id: cvvvvvvv
        topic: im.cvccc.cvcvc
        type: apns
                fcm_options:
                    content_available: true
                    priority: high
                    badge : 9
                    sound : bingbong.aiff
                    mutable_content: 1
http:
    bind_addresses:
    - '::'
    port: 6000
log:
    access:
        x_forwarded_for: true
    setup:
        disable_existing_loggers: false
        formatters:
            normal:
                format: '%(asctime)s [%(process)d] %(levelname)-5s %(name)s %(message)s'
        handlers:
            stderr:
                class: logging.StreamHandler
                formatter: normal
                stream: ext://sys.stderr
            stdout:
                class: logging.StreamHandler
                formatter: normal
                stream: ext://sys.stdout
        loggers:
            sygnal:
                handlers:
                - stderr
                propagate: false
            sygnal.access:
                handlers:
                - stdout
                level: INFO
                propagate: false
        root:
            handlers:
            - stderr
            level: INFO
        version: 1
metrics:
    opentracing:
        enabled: false
        implementation: jaeger
        jaeger:
            logging: true
            sampler:
                param: 1
                type: const
        service_name: sygnal
    prometheus:
        address: 0.0.0.0
        enabled: false
        port: 8000
    sentry:
        enabled: false
DMRobertson commented 2 years ago

See my comment here for advice debugging this: https://github.com/matrix-org/sygnal/issues/323#issuecomment-1259438550

DMRobertson commented 2 years ago

Duplicate of #323 and others.

vanyasem commented 1 month ago

FluffyChat does not seem to implement iOS foreground notifications (as it uses exclusively fcm_shared_isolate for it's FCM notifications, which lacks support for iOS altogether).

FluffyChat uses krille-chan/fluffygate as it's push gateway (https://push.fluffychat.im/), which sends notification pushes, which are handled by the OS itself on iOS (More on the difference between notification and data pushes here). Sygnal, on the other hand, only sends data pushes, which have to be processed by the app itself, which is not supported by FluffyChat.

See https://github.com/famedly/fcm_shared_isolate/issues/5 for an explanation and potential workarounds.

vanyasem commented 1 month ago

Also see #319 (https://github.com/famedly/matrix-dart-sdk/issues/1947, https://github.com/famedly/matrix-dart-sdk/issues/1948), #325 as these (separate) issues are also related to FluffyChat's push implementation