Skip to content

fix: Android widget cold start crash and routing failure#606

Open
Apprentice2907 wants to merge 13 commits intoCCExtractor:mainfrom
Apprentice2907:Fixes-Hide-waiting-tasks
Open

fix: Android widget cold start crash and routing failure#606
Apprentice2907 wants to merge 13 commits intoCCExtractor:mainfrom
Apprentice2907:Fixes-Hide-waiting-tasks

Conversation

@Apprentice2907
Copy link
Contributor

Description

Fixed Android widget crash and routing failure on cold start (app fully closed).

The widget was using PendingIntent.getBroadcast() to handle button clicks,
which is blocked on Android 12+ when starting activities from background
receivers. Additionally, deep link routing was not handled for cold starts.

Also fixed the following build errors:

  • Sentences class was abstract and could not be instantiated directly —
    fixed by using SentenceManager with the current app language
  • Routes.TASKSERVER_SETUP did not exist — replaced with the correct
    route Routes.MANAGE_TASK_SERVER
  • task.depends getter was missing on TaskForReplica model —
    added the field with proper fromJson, toJson and copyWith support

Fixes #594

Screenshots

Checklist

  • Tests have been added or updated to cover the changes
  • Documentation has been updated to reflect the changes
  • Code follows the established coding style guidelines
  • All tests are passing

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.

Android Widget crashes or fails to route on Cold Start

1 participant