stefan-niedermann / nextcloud-deck

📋 Android client for nextcloud deck app

Home Page:https://play.google.com/store/apps/details?id=it.niedermann.nextcloud.deck.play

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No Notification

timomatrixer opened this issue · comments

Describe the bug
No Notification on phone, when scheduled todo expires.
App Info on Phone: This App send no notification / Diese App sendet keine Benachrichtigungen

Steps to reproduce the behavior:

  1. Create expiration date for a todo card image
  2. nextcloud webgui settings: Activity (see picture)
  3. Expiry date is overdue and no notification is received.

Expected behavior
The app should generate a notification when the event occurs.

Screenshots
image
image

Versions

  • Nextcloud: Hub 6
  • Nextcloud Deck: 1.11.0
  • Nextcloud Android: 3.26.0
  • Nextcloud Android Deck: 1.22.1

Smartphone (please complete the following information):

  • Device: Pixel 7 Pro
  • Android-Version: 14
  • App-Store:
    • Google Play Store

Stacktrace

As described in the FAQ, this can only work if the Nextcloud Android app (not Deck Android) receives Push Notifications. Does it?

All settings enabled in nextcloud app.
image

Ok I find out, push notifications only appear, when the time ist set by 5min increments. So for example:
Not working: 12:04 / 12:06 / 12:44 etc...
Working; 12:05 / 12:10 / 12:15 etc...

Could you confirm that?

Maybe this is related to your cron setup? Are you using a real cronjob or one of the other two solutions?

Do other Push notification (not related to Deck, like File shares) work in general with your phone?

image
I think so. In my opinion, that is not correct. How should I explain to my users that they will only receive push notifications if they set the reminder in 5min increments. If the Desk app synchronized every 5min ok. But push notification should work at all times.

To be honest: The (not by us developed) Deck server app sends the Push notification, the (not by us developed) Nextcloud Android app, receives and displays Push Notification. The Deck Android App handles clicking on a successfully received Push Notification.

I asked multiple times whether or not you receive other push notifications on your Nextcloud Android app to exclude possible error sources (like your Android device, your Google Play Services, your Nextcloud server, your used server apps, ...), you did not respond a single time and help debugging your personal setup.

Not sure how you expect us to solve your issue this way?

Android Nextcloud App Info: All Notification enabled and I am logged in

How do I test this correctly? I have this settings in Web App:
image

I added a new folder and renamed it:
image

Nothing happened

So, you do not receive any push notifications of your Nextcloud instance (not matter whether Deck or Files or any other app)?

I receive messages. From the nextcloud app and as described previously, I receive deck app notifications when I set the reminder in 5-minute intervals.
image

and here:
image

Indeed, what a riddle.

Given the Deck Android app only handles clicking on received notifications, we definitely can exclude this app being responsible for your issue. I am also pretty sure the Nextcloud Android App does not cause these symptoms.

However, let's try to investigate it a bit though:

  • Push notifications are also send to an open browser: Does your browser also show only due dates set in a 5 minute interval or do any due dates work?
  • If you change your settings in the Web UI to receive a mail notification, will this also only work if you use due dates in 5 minute intervals? Are mails send when you have a due date like 12:03 h?

I have new insights. I did the following tests.

  1. Via Web App (browser): due dates: 23:14 -> Notification on Phone and Web App (browser)
  2. Via Desk App: due dates: 23:16 -> No notification on Phone and no notification Web App (browser)
  3. Via Web App (browser): due dates: 23:18 -> Notification on Phone appeared at 23: 20 and yes notification Web App (browser) but only after reloading the page

No E-Mail Server configurated yet. Yahoo has actual problems with smpt PW generation

Any suggestions?

Unfortunately no. Your testing results are confusing at its best and do not make any sense to me. I recommend you to open your issue in the repository of the Deck server app (which is supposed to send the notifications) and ask there - they maybe have some idea about how to debug your problem. I also strongly recommend you to configure a proper SMTP server and not relying on the PHP mail() function - there are various free mail providers you can use for testing purposes to exclude further potential error origins in your setup.

I am sorry for not being able to help you better, but well, sending and receiving notifications is simply not part of the Deck Android app - we just show stuff when tapping on a notification.

Deck Android app used to show notifications without Push being enabled. Is that no longer possible?
I do not use google services on my phone so i don't have push capability. I used to get Persistent notifications from Deck so i added certain tasks to it so i could make sure they would get done. Now i don't even get notified of them.

Deck Android app used to show notifications without Push being enabled.

No. It. did. never (as explained multiple times in this thread). The Deck Android App did never and does not show or send any Push Notifications.

It can handle clicking on notifications shown by the Nextcloud Android app sent by the Deck server app.

Yes, the Nextcloud Android app requires Google Play Services to receive Push Notifications.
No, it did never work without.

Troubleshooting:

  1. Check whether the Deck Server app sends push notification
  2. Check whether the Nextcloud Android app receives and shows notification
  3. If, and ONLY if, you are experiencing an issue after clicking on a notification on your phone, feel free to open an issue. Everything else is completely within the responsibility of your server administrator for 1. or your smarthpone setup for 2.

Also sorry for @timomatrixer but I'll close this issue as the root cause must definitely be outside of the Deck Android app.