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

Android notifications not working #57

Open
ZedSphere opened this issue Jul 30, 2023 · 14 comments
Open

Android notifications not working #57

ZedSphere opened this issue Jul 30, 2023 · 14 comments

Comments

@ZedSphere
Copy link

When receiving messages on an Android device (Tested on a Google Pixel 7 Pro) no notification sounds play regardless of "Enable Notification Sounds" being toggled to the "ON" position within the app and app permissions being granted.

@balzack
Copy link
Owner

balzack commented Jul 30, 2023

There are two places within the app to enable notifications.

  1. within the profile screen switch 'enable notifications' to on
  2. within the admin dashboard switch 'enable push notifications' to on

Notifications also must be enabled for the app in the OS, but sounds like you already confirmed this.

Notifications only occur when a contact creates a new topic with you, adds a message to a shared topic, or calls you. Notifications won't occur if you just add a message with your account from the browser.

If this still is not working for you, can you tell me more about your setup? Are you using UnifiedPush with ntfy?

@fr2875
Copy link

fr2875 commented Jan 23, 2024

notifications don't work for me either

@balzack
Copy link
Owner

balzack commented Jan 23, 2024

hmmm, it should be working. Are you using anything like fdroid or lineageOS?

Can you create an account with the demo server databag.coredb.org, ad see if that server is able to push notifications to you?

@fr2875
Copy link

fr2875 commented Jan 23, 2024

yea lineageOS and f-droid...

@fr2875
Copy link

fr2875 commented Jan 23, 2024

I've never had a notification problem with lineageOS
and I've tried with your server with two different accounts and still no notification even when I test the audio calls.

@balzack
Copy link
Owner

balzack commented Jan 23, 2024

I also use lineageOS and notifications with ntfy/UnifiedPush works for me.

There have been reports that notifications don't work with the tor network enabled. I'm not yet sure why; would this be the case for you?

@fr2875
Copy link

fr2875 commented Jan 24, 2024

nop i use 4g. maybe there's a problem with the battery management?

@fr2875
Copy link

fr2875 commented Jan 24, 2024

normally nothing needs to be changed for it to work ?

@balzack
Copy link
Owner

balzack commented Jan 24, 2024

Are you using UnifiedPush for notifications?

Google's firebase messaging is not open source, which is required by f-droid. To support push notifications the f-droid build has the integration replaced with UnifiedPush. Let me know if there is an f-droid app that supports push notifications in another way, so I can support that as well.

If you install the google store version of Databag, it should work without UnifiedPush.

@fr2875
Copy link

fr2875 commented Jan 24, 2024

I don't have the playstore
where can I find this official version?

@fr2875
Copy link

fr2875 commented Jan 25, 2024

ok so version 1.1 of F-droid works with notification but you need to install ntfy and then databag not the other way round...
is it normal that it's version 1.5 on the play store and 1.1 on f-droid ?

@balzack
Copy link
Owner

balzack commented Jan 25, 2024

  • need to install ntfy and then databag
    yes, thanks for calling this out. I need to be more clear about that

  • version 1.5 on the play store and 1.1 on f-droid
    yes, that is the current (confusing) versioning. The versioning diverged when I released on fdroid, and I need to fix this.

  • where can I find this official version
    I see you resolved this with ntfy, but let me know if you still want the google services version and I can publish the '.apk' as part of the github release.

Thanks for staying with this project through the difficulties! It helps me learn where I need to improve the databag service and my communication.

@fr2875
Copy link

fr2875 commented Jan 25, 2024

yes putting the apk version on github is really useful when you don't have the playstore.

thank you for creating this free, self-hosted alternative messaging service and keeping it alive.

@balzack
Copy link
Owner

balzack commented Jan 26, 2024

I added the apk to the latest release: https://github.com/balzack/databag/releases/download/v1.1.11/databag.apk

That one has been manually built. I'll link it to the main readme if I figure out how to build it with a github action.

Thanks for all the feedback!

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

No branches or pull requests

3 participants