-
Notifications
You must be signed in to change notification settings - Fork 162
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe your issue
The Android widget currently breaks if the app is fully closed (swiped away from recents). It works fine if the app is just sitting in the background, but on a cold start, it fails in two ways:
- Android 12+ Crash: Clicking the widget causes a crash or a black screen. We're using
PendingIntent.getBroadcastto open the app, and newer Android versions specifically block starting activities from background receivers like this. - Routing Failure: Even if the app doesn't crash, it fails to route you to the right place on a cold start. Whether you click the "+" button or a specific task, it just opens the app to the default home screen. It never actually triggers the "Add Task" sheet or opens the task details like it's supposed to.
Steps to reproduce
- Add the Taskwarrior widget to your Android home screen.
- Force close the app completely (swipe it away from the recent apps list).
- Tap either the "+" (Add) button or any specific task on the widget.
- Observe the result: The app either crashes completely (showing a red Flutter error screen in debug mode / black screen in release) or it just opens the main screen and fails to route to the requested "Add Task" sheet or task details.
What was the expected result?
When the app is completely closed (cold start), clicking the widget should successfully open the app without crashing or showing a black screen. Specifically:
- Clicking the "+" button on the widget should open the app and immediately show the "Add Task" bottom sheet.
- Clicking a specific task on the widget should open the app and take you directly to that task's details.
Put here any screenshots or videos (optional)
The Bug - Fails to route/Crashes (App completely closed):
Working as expected (App running in background):
How can we contact you (optional)
You can tag me right here on GitHub, or reach me on Zulip (User ID: 1017036).
Would you like to work on this issue?
Yes
By submitting this issue, I have confirmed that:
- I have starred the repo ⭐ and watched 👀 it on GitHub and followed the contribution guidelines.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working