Go to file
Antonio Russo e74565a6d6
wip: Allow wakelock to timeout naturally
When an intent is sent off after a notification event is received, the
receiver may not obtain their own wakelock.  In that event, despite the
near-instant delivery of a push notification, the event receiver may yet
still need to wait for the phone to wake again in order to actually
act on the notification.

In this patch, we employ the existing
NOTIFICATION_RECEIVED_WAKELOCK_TIMEOUT_MILLIS value that controls the
length of time the wakelock is held before expiring.  Normally, this
would never occur, instead the lock is released at the end of our
processing of the event.  However, when we release it, the receiving
applications lose their ability to act before the device is accidentally
woken for some other reason.  Instead, we set this timeout to a more
reasonable value of 3 seconds, and do NOT release it ourselves.  This
means that the receiving applications have around 3 seconds to act
before the wakelock expires.

This is less than ideal: the receiving applications should know whether
or not their response deserves a wakelock, and they should themselves
get and hold it until they are satisfied.  However, this works around
buggy AOSP versions and applications that do not implement this more
ideal behavior.

Signed-off-by: Antonio Russo <aerusso@aerusso.net>
2024-02-25 21:28:32 -07:00
app wip: Allow wakelock to timeout naturally 2024-02-25 21:28:32 -07:00
assets Add iOS screenshots 2022-05-26 16:31:52 -04:00
fastlane/metadata/android Bump gradle tools 2023-05-19 20:29:16 -04:00
gradle/wrapper Upgrade gradle 2023-05-19 20:25:05 -04:00
.gitignore Gitignore 2021-11-29 15:28:05 -05:00
build.gradle Bump gradle tools 2023-05-19 20:29:16 -04:00
gradle.properties Initial commit based on original flower example 2021-10-25 09:01:10 -04:00
gradlew Initial commit based on original flower example 2021-10-25 09:01:10 -04:00
gradlew.bat Initial commit based on original flower example 2021-10-25 09:01:10 -04:00
LICENSE Initial commit based on original flower example 2021-10-25 09:01:10 -04:00
README.md fix(docs): Move building instructions to official docs 2023-04-18 22:24:12 +02:00
settings.gradle Ntfy -> ntfy 2022-04-22 15:01:45 -04:00
TESTING.md Testing 2021-11-29 15:36:41 -05:00

ntfy Android App

This is the Android app for ntfy (ntfy.sh). You can find the app in F-Droid or the Play Store, or as .apk files on the releases page.

Build

For up-to-date building instructions, please see the official docs.

Translations

We're using Weblate to translate the ntfy Android app. We'd love your participation.

Translation status

License

Made with ❤️ by Philipp C. Heckel, distributed under the Apache License 2.0.

Thank you to these fantastic resources: