Skip to content

Centralize alarm PendingIntent identities#895

Open
Rahul-2k4 wants to merge 1 commit intoCCExtractor:mainfrom
Rahul-2k4:issue887-pendingintent-identity-v2
Open

Centralize alarm PendingIntent identities#895
Rahul-2k4 wants to merge 1 commit intoCCExtractor:mainfrom
Rahul-2k4:issue887-pendingintent-identity-v2

Conversation

@Rahul-2k4
Copy link

Summary

  • centralize alarm PendingIntent request codes and creation in one helper
  • reuse that helper from MainActivity and BootReceiver so scheduling and cancellation target the same identities
  • cancel the legacy boot-restored alarm identity alongside the current alarm identity
  • add a native regression test for the stable PendingIntent request-code contract

Testing

  • branch diff against main reduced to the intended 4 files
  • native unit test remains blocked on current main in this environment because the repo still uses the removed imperative Flutter Gradle plugin loader

Closes #887

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.

Bug: PendingIntent identity mismatch can leave stale or duplicate boot-restored alarms

1 participant