Android: "null" in the second line of the notification #741

Open
opened 2026-04-24 23:36:23 +02:00 by adam · 9 comments
Owner

Originally created by @neingeist on GitHub (Oct 29, 2023).

image

Steps to reproduce

  1. Using the Audiobookshelf app with my Audiobookshelf server, I get this "null" in the notification, for every audiobook I play.

Expected behaviour

No "null" or some other useful info.

Actual behaviour

(As above)

Environment data

Audiobookshelf Version: 2.4.4
Android App version: 0.9.66-beta

Android Issue

Android version: 10 (stock vendor image, OxygenOS 10.0.1)

Device model: OnePlus 5T (aka OnePlus A5010)

Stock or customized system: stock, OxygenOS 10.0.1

This could be related to the bug if this does not happen with a later Android version, I couldn't switch to LineageOS yet which would provide an uptodate Android.


Thanks for Audiobookshelf and the app, too , I like using it 😃

Originally created by @neingeist on GitHub (Oct 29, 2023). ![image](https://github.com/advplyr/audiobookshelf-app/assets/398881/d38a99db-9d54-4e1d-beca-4745d3b8ce64) ### Steps to reproduce 1. Using the Audiobookshelf app with my Audiobookshelf server, I get this "null" in the notification, for every audiobook I play. ### Expected behaviour No "null" or some other useful info. ### Actual behaviour (As above) ### Environment data Audiobookshelf Version: 2.4.4 Android App version: 0.9.66-beta #### Android Issue Android version: 10 (stock vendor image, OxygenOS 10.0.1) Device model: OnePlus 5T (aka OnePlus A5010) Stock or customized system: stock, OxygenOS 10.0.1 This could be related to the bug *if* this does not happen with a later Android version, I couldn't switch to LineageOS yet which would provide an uptodate Android. --- Thanks for Audiobookshelf and the app, too , I like using it 😃
adam added the bug label 2026-04-24 23:36:23 +02:00
Author
Owner

@neingeist commented on GitHub (Oct 29, 2023):

Looking at the (probably) relevant code, it should display the author here. All my audiobooks have an author set, so there must be something else going wrong?

@neingeist commented on GitHub (Oct 29, 2023): Looking at the (probably) [relevant code](https://github.com/advplyr/audiobookshelf-app/blob/6b164bdb276b835df9d0dc14bf43c43910009fa9/android/app/src/main/java/com/audiobookshelf/app/player/PlayerNotificationService.kt##L316-L322), it should display the author here. All my audiobooks have an author set, so there must be something else going wrong?
Author
Owner

@advplyr commented on GitHub (Oct 29, 2023):

This is specific to Android 10 and below. They must have changed the expected data to pass into the notification but I haven't looked into it. I know this has been brought up before but I couldn't find the issue so maybe it was mentioned on Discord.

@advplyr commented on GitHub (Oct 29, 2023): This is specific to Android 10 and below. They must have changed the expected data to pass into the notification but I haven't looked into it. I know this has been brought up before but I couldn't find the issue so maybe it was mentioned on Discord.
Author
Owner

@neingeist commented on GitHub (Oct 29, 2023):

Ha, had the hunch it was related to the old OS.

(I had also searched and didn't find an open issue about this.)

@neingeist commented on GitHub (Oct 29, 2023): Ha, had the hunch it was related to the old OS. (I had also searched and didn't find an open issue about this.)
Author
Owner

@neingeist commented on GitHub (Oct 29, 2023):

Please decide if you want the issue to remain open. I'm going to update the phone and can live with a "wontfix".

@neingeist commented on GitHub (Oct 29, 2023): Please decide if you want the issue to remain open. I'm going to update the phone and can live with a "wontfix".
Author
Owner

@SenorSmartyPants commented on GitHub (Feb 29, 2024):

I have this same issue, and have no current plans on upgrading my phone.

Please keep this issue open. Thank you.

@SenorSmartyPants commented on GitHub (Feb 29, 2024): I have this same issue, and have no current plans on upgrading my phone. Please keep this issue open. Thank you.
Author
Owner

@neingeist commented on GitHub (Mar 5, 2024):

(I've unsubscribed - Android 10 has been EOL for a year now. I wouldn't work on this if I was @advplyr.)

@neingeist commented on GitHub (Mar 5, 2024): (I've unsubscribed - Android 10 has been EOL for a year now. I wouldn't work on this if I was @advplyr.)
Author
Owner

@SenorSmartyPants commented on GitHub (Feb 18, 2025):

I was looking for a different open source AB player to see if there was one that handled notifications better on Android 10. Voice has some improvements that could point the way.

Here's the ABS notification on top, and Voice below it, same file.

Edit: Just noticed I have the wrong cover embedded in that file. Oops.

Image

@SenorSmartyPants commented on GitHub (Feb 18, 2025): I was looking for a different open source AB player to see if there was one that handled notifications better on Android 10. [Voice](https://github.com/PaulWoitaschek/Voice) has some improvements that could point the way. Here's the ABS notification on top, and Voice below it, same file. Edit: Just noticed I have the wrong cover embedded in that file. Oops. ![Image](https://github.com/user-attachments/assets/1b81fdb6-93bf-449b-9374-f66fc272abbb)
Author
Owner

@nichwall commented on GitHub (Feb 18, 2025):

As of February 2025, less than 5% of all installs (less than 3,500) are Android 10 or below through Google Play.

Do you know if it is a simple change to fix the notification on Android 10, or does the notification logic need to be rewritten?

@nichwall commented on GitHub (Feb 18, 2025): As of February 2025, less than 5% of all installs (less than 3,500) are Android 10 or below through Google Play. Do you know if it is a simple change to fix the notification on Android 10, or does the notification logic need to be rewritten?
Author
Owner

@SenorSmartyPants commented on GitHub (Feb 18, 2025):

I'm not an android developer so I didn't dig into code to to see what was happening. I'm not sure of any function names to search for or anything like that.

@SenorSmartyPants commented on GitHub (Feb 18, 2025): I'm not an android developer so I didn't dig into code to to see what was happening. I'm not sure of any function names to search for or anything like that.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf-app#741