AppManager icon indicating copy to clipboard operation
AppManager copied to clipboard

Notifications aren't being displayed in Android TV

Open rex07 opened this issue 3 years ago • 16 comments

  • [✓] I know what my device, OS and App Manager versions are
  • [✓] I know how to take logs
  • [✓] I know how to reproduce the issue which may not be specific to my device

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behaviour:

  1. Open the app then 'The app stuck on initializing screen'
  2. It loop on the initializing

Expected behavior A adk.

Screenshots

Crash logs

log(1).txt log.txt

Device info

  • Device: [android tv]
  • OS Version: [Android 9]
  • App Manager Version: [v2.7.0-DEBUG#1387 and V2.6.2]
  • Mode: adb/no-root

Additional context Add any other context about the problem here.

rex07 avatar Jul 07 '21 13:07 rex07

Your logs are filtered using package name which excludes most of the important logs. Share logs without any filter. By the way, since you've tried using ADB, see #466 first.

MuntashirAkon avatar Jul 07 '21 14:07 MuntashirAkon

@MuntashirAkon Full System log dump log(2).txt

rex07 avatar Jul 07 '21 14:07 rex07

Logs are saying that App Manager asked for a KeyStore password and you haven't provided any. You have to create a new KeyStore password, otherwise it wouldn't work. See #467.

MuntashirAkon avatar Jul 07 '21 16:07 MuntashirAkon

How can I provide any on frozen app on tv No dialog or text input to add password

rex07 avatar Jul 07 '21 16:07 rex07

How can I provide any on frozen app on tv

There should be a popup notification asking for a password.

MuntashirAkon avatar Jul 07 '21 17:07 MuntashirAkon

There is noting not any notification

rex07 avatar Jul 07 '21 17:07 rex07

not any notification

No idea, then. I don't have any Android TV to test. Try v2.6.0 first.

MuntashirAkon avatar Jul 07 '21 17:07 MuntashirAkon

V2.6.0 works fine screenshot_1625679511385

rex07 avatar Jul 07 '21 17:07 rex07

V2.6.0 works fine

Yeah, as expected. Now, navigate to Settings > APK Signing. You should see a notification immediately there. Let me know if you can see one.

MuntashirAkon avatar Jul 07 '21 17:07 MuntashirAkon

Yes an Adb debugging notification

rex07 avatar Jul 07 '21 17:07 rex07

Yes an Adb debugging notification

Nothing on KeyStore? That's really odd.

MuntashirAkon avatar Jul 07 '21 17:07 MuntashirAkon

Unfortunately nothing on keystore

rex07 avatar Jul 07 '21 17:07 rex07

Unfortunately nothing on keystore

Okay. I think this requires some broad investigation. It's already late night here. So, I'll try to figure it out in the next day. Thanks for reporting the issue.

MuntashirAkon avatar Jul 07 '21 18:07 MuntashirAkon

Android TV supports notifications only for system apps. So, notifications for App Manager were simply skipped (since it's not a system app). So, I guess I need to find workarounds.

MuntashirAkon avatar Jul 08 '21 04:07 MuntashirAkon

We've eliminated the need for entering KeyStore password in #513. However, there are still many problems regarding notifications that need addressing such as installation confirmation (in app installer) and service notifications.

MuntashirAkon avatar Jul 23 '21 02:07 MuntashirAkon

In 0eaa6f21, notifications during app installation are disabled for Android TV (Oreo or later). So, you should now be able install APK without issues.

MuntashirAkon avatar Sep 08 '21 17:09 MuntashirAkon