Skip to content

Leave the notification listener out of the manifest when income is off (1.0.22) - #17

Merged
Punlork merged 2 commits into
mainfrom
fix/play-notification-listener
Sep 28, 2026
Merged

Punlork merged 2 commits into
mainfrom
fix/play-notification-listener

Conversation

@Punlork

@Punlork Punlork commented Sep 28, 2026

Copy link
Copy Markdown
Owner

Google Play blocked 1.0.21 for BankNotificationListenerService. With FEATURE_INCOME off it shipped with android:enabled="false", but Play reviews the declared manifest, so a disabled listener and its BIND_NOTIFICATION_LISTENER_SERVICE permission still counted.

When the flag is off, build.gradle now merges src/noIncome/AndroidManifest.xml, which removes the service with tools:node="remove".

Build FEATURE_INCOME Listener Permission
production off not declared not declared
development on declared declared

Checked in the merged manifests of real builds. Bumps to 1.0.22+27, so merging releases it.

🤖 Generated with Claude Code

Punlork and others added 2 commits September 28, 2026 16:59
…is off

Google Play blocked the 1.0.21 release for BankNotificationListenerService.
With FEATURE_INCOME off it shipped with android:enabled="false", but Play
reviews the declared manifest, so a disabled listener -- and its
BIND_NOTIFICATION_LISTENER_SERVICE permission -- still counts.

When the flag is off, build.gradle now points each flavor's manifest at
src/noIncome/AndroidManifest.xml, which removes the service with
tools:node="remove". The flavors had no manifest of their own, so nothing
else is overridden. One JSON file still drives Dart and Android; the
featureIncome placeholder goes, since the service is either declared and
on or not declared at all.

Checked in the merged manifests of real builds: production (income off)
declares neither the service nor the permission; development (income on)
declares both. The one native call at startup, the listener rebind,
returns early unless notification access is granted, which an undeclared
service can never be.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@Punlork
Punlork merged commit de1ba66 into main Sep 28, 2026
1 check failed
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

Successfully merging this pull request may close these issues.

1 participant