Comments (3)
Ok, I'm trying to understand what is going on from the logs.
First of all, looking through the from-app captured log, i see a Sending message intent broadcast:
line, but no corresponding Broadcast received:
line (?!?).
Are those logs collated somewhere else? Where can I find those?
That said, from the Displaying notification Notification(...)
log entry, it seems that NotificationService.display is getting called, but is it completing? And moreover, is the subsequent call to NotificationManager.notify (from within displayInternal) getting the wakelock handed off to it (or held for it? I don't know the convention here).
In short: I think that that UserActionManager
is being tasked to handle two kinds of work: tasks that should be handled once the phone wakes up (like sending network responses) and also things that need to be handled immediately (like sending notification to the user, passing off unifiedpush messages to other phone apps).
Shouldn't those two kinds of tasks be handled separately? Both seem to be enqueued at the same time there?
from ntfy.
To address your first point (no corresponding broadcast received), I wouldn't expect ntfy to receive its own intent. I'm pretty sure (without digging into the code right now) that the message intent broadcast line corresponds to the setting in the Android app settings called "Broadcast Messages."
If you disable "Broadcast Messages", I would expect that line in the logs to go away. I believe the Broadcast Messages setting is only there for automation apps, like Tasker and MacroDroid, to react to received notifications. I'm pretty sure UnifiedPush continues to work (e.g., broadcast message intents to UP apps) in the background, even if that setting is disabled
from ntfy.
Doesn't BroadcastReceiver
in BroadcastService.kt
receive the SEND_MESSAGE intent? The comment there at least suggests it does. But thank you for pointing out another thing it should be doing, and also explaining why it shouldn't be showing up! Anyway, it doesn't really matter.
I am able to confirm that holding the wakelock for another few seconds causes the phone to respond to incoming messages nearly instantaneously. I've put this into a WIP patch.
@wunter8 I'd really appreciate your insight in that PR when you have time.
from ntfy.
Related Issues (20)
- Email authentication fails with Microsoft 365 Outlook SMTP HOT 1
- Could ntfy support s390x? HOT 2
- I cannot restrict public access to my ntfy docker instance. HOT 3
- Add apple shortcuts to documentation HOT 5
- Segfault on publish (installed with nix) HOT 2
- base-url isn't respected HOT 1
- Load server configuration from server.yaml
- iOS app: clear all notifications does nothing
- clear=true does nothing
- Why canβt new notifications be displayed when the screen is locked? (Android) HOT 1
- Webapp doesn't allow subscribing when ntfy is not running on a dedicated sub-domain
- Propagate authorization credentials to matrix client HOT 2
- Use different distributor for ntfy (Android)
- provide a systemd unit file to run the ntfy server as a systemd service HOT 3
- [FR] last activity timestamp
- Add an option to display max priority notifications full screen
- auth-file settings ignored HOT 3
- Nagging notifications
- Any plans for a tvos port?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ntfy.