Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore notification title ignored #10

Closed
axxxxel opened this issue Feb 21, 2024 · 20 comments
Closed

Ignore notification title ignored #10

axxxxel opened this issue Feb 21, 2024 · 20 comments

Comments

@axxxxel
Copy link

axxxxel commented Feb 21, 2024

I'm trying to forward the speed camera notifications of BLITZER.de to my AA screen. Everything works well but there is probably a problem with the "Ignore notification titles" setting.

BLITZER.de app has a persistent notification that changes icons when GPS signal state is changing. That happens pretty often in tunnels or under long bridges. These notifications always pop up with the title "Dummy - not used".
I thought to add this string to the titles blacklist but they are still popping up.

Is this "Dummy - not used" just set if the notification contains an empty string or something weird?
The persistent one one shows "App active" and some buttons.

Any recommendation how to remove these empty notifications?

Thanks man, great app!

Notifications in AA:
PXL_20240221_173227289

@ztNFny
Copy link
Owner

ztNFny commented Feb 21, 2024

Can you please try with ignore group notifications enabled?

@ztNFny
Copy link
Owner

ztNFny commented Feb 21, 2024

The string "Dummy - not used" is from this app - but it should never become exposed.
Can you please provide step by steps instructions (screenshots if required) on how to configure the app to trigger those notifications

@axxxxel
Copy link
Author

axxxxel commented Feb 21, 2024

All settings are pretty much unchanged.

  • Blitzer.de app is selected
  • No dismissed notifications
  • Ignore titles can be anything
  • Ignore group notifications tried both
  • rest is unchanged

Maybe you can try it with the speed cam app installed by yourself? There is a free version available:
https://play.google.com/store/apps/details?id=de.blitzer

@ztNFny
Copy link
Owner

ztNFny commented Feb 21, 2024

Could you share a screenshot of the Blitzer apps original notification please? Only way I see this happening is if both title and message are empty ...

@axxxxel
Copy link
Author

axxxxel commented Feb 21, 2024

Original notification

Screenshot_20240221-220044

With AA Notifications (3 changes during App startup)

Screenshot_20240221-220016

@ztNFny
Copy link
Owner

ztNFny commented Feb 21, 2024

I'm attaching a new apk with additional logging. Could you please enable debug logging in settings, then capture the log using "adb logcat" on a PC or any of the logcat apps on the PlayStore? The lines I'm looking for contain "xda.xlafbk.aanotificationforwarder"
app-release.apk.zip

@axxxxel
Copy link
Author

axxxxel commented Feb 21, 2024

Today I have no PC here to access my phone with abd or to grant access to logcat apps.
I will try tomorrow.

@axxxxel
Copy link
Author

axxxxel commented Feb 22, 2024

Now I have created a logcat.log file with grep "xlafbk" for the time starting up Blitzer.de and receiving the first 3 notifications

logcat.log

@ztNFny
Copy link
Owner

ztNFny commented Feb 22, 2024

is that with the test-build I attached yesterday? I'm not seeing any of the new debug lines I added.

Edit: Actually I'm not seeing any debug lines. Did you enable the debugging setting in the apps settings?

@axxxxel
Copy link
Author

axxxxel commented Feb 22, 2024

Yes, that is your special version from yesterday and debugging is active (even though the check box is hidden behind the floating button...)
Maybe the logcat app is removing too much - this is the logcat without grep

logcat.log

@ztNFny
Copy link
Owner

ztNFny commented Feb 22, 2024

Found it, sorry gave you the wrong advice on how to filter as my logcat output contains slightly different info.

It's as suspected: The notification has no content at all - very "interesting" app design there. I'll try to provide a fix later today.

02-22 09:18:45.681 D/AANotificationForwarder(30338): Bundle content - "android.subText" : ""
02-22 09:18:45.681 D/AANotificationForwarder(30338): Bundle content - "android.summaryText" : ""
02-22 09:18:45.681 D/AANotificationForwarder(30338): Bundle content - "android.template" : "android.app.Notification$DecoratedCustomViewStyle"
02-22 09:18:45.681 D/AANotificationForwarder(30338): Bundle content - "android.text" : ""
02-22 09:18:45.681 D/AANotificationForwarder(30338): Bundle content - "android.textLines" : ""
02-22 09:18:45.681 D/AANotificationForwarder(30338): Bundle content - "android.title" : ""
02-22 09:18:45.681 D/AANotificationForwarder(30338): Bundle content - "android.title.big" : ""
02-22 09:18:45.681 D/AANotificationForwarder(30338): Bundle content - "android.verificationText" : ""
02-22 09:18:45.681 D/AANotificationForwarder(30338): Bundle content - "android.bigText" : ""
02-22 09:18:45.681 D/AANotificationForwarder(30338): Bundle content - "android.infoText" : ""

@axxxxel
Copy link
Author

axxxxel commented Feb 22, 2024

Indeed, the app design is kind of wild.
This morning I took two more pictures

  • the first how I like it to be (with speed camera detected)
  • second picture is the app notification for an upcoming accident with "Dummy" string again...

PXL_20240222_061732962

PXL_20240222_064130463

@ztNFny
Copy link
Owner

ztNFny commented Feb 22, 2024

It seems they not always have a description available. But I don't see any chance of treating the wanted and unwanted empty notifications differently, there's simply no info to differentiate them.
I could hardcode some special rules for that app, but those might easily break on app updates, so I don't really want to go that route.

BTW: If I understand it right those notifications are time-critical? You can't rely on Android Auto showing notifications in a timely manner. Their display is often delayed by many seconds, even minutes, after being sent by an app.

@axxxxel
Copy link
Author

axxxxel commented Feb 22, 2024

Is it maybe possible to check for the existence of a text content (2 min - 500m - A7)?
Otherwise I'm already happy to see the speed cam notifications.

I have recognised the delayed display already this morning. Every speed cam get's 3 alarms (500m, 150m, 50m).
The 500m warning comes in time but the later ones were delayed until I already passed the cam, but there is an alarm sound.

@ztNFny
Copy link
Owner

ztNFny commented Feb 22, 2024

Is it maybe possible to check for the existence of a text content (2 min - 500m - A7)?

Can you get me a logcat of one of those? See above for what to look for

@axxxxel
Copy link
Author

axxxxel commented Feb 22, 2024

Will try - I just need to organize an accident for that...

@axxxxel
Copy link
Author

axxxxel commented Feb 22, 2024

On my way home I have recorded a speed cam notification with both title and body not null

logcat.log

PXL_20240222_165202112

@ztNFny
Copy link
Owner

ztNFny commented Feb 22, 2024

new build attached, it shouldn't show those useless notifications anymore but hopefully still the accident one without title. If not a logcat for that one please.
app-release.apk.zip

@axxxxel
Copy link
Author

axxxxel commented Feb 22, 2024

Great, many thanks!
I will perform some trials and provide feedback.
Excellent support 👍

@axxxxel axxxxel closed this as completed Feb 27, 2024
@axxxxel
Copy link
Author

axxxxel commented Feb 27, 2024

Everything fine now.
Thanks again - I have closed the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants