taskwarrior-flutter icon indicating copy to clipboard operation
taskwarrior-flutter copied to clipboard

Error screen on clicking Home Widget on android

Open Mastermind-sap opened this issue 8 months ago • 5 comments

Describe your issue

When you click on home widget on android it opens app and shows error screen. This happens only when the app is closed completely.

Steps to reproduce

  1. Add home widget.
  2. Close the app and remove it from android's recent apps.(I mean completely close it)
  3. Click on the Home widget to add or view task.

What was the expected result?

It should direct into the app like it is doing when the app is open.

Put here any screenshots or videos (optional)

Image

How can we contact you (optional)

No response

Would you like to work on this issue?

Yes

By submitting this issue, I have confirmed that:

  • [x] I have starred the repo ⭐ and watched 👀 it on GitHub and followed the contribution guidelines.

Mastermind-sap avatar Apr 03 '25 19:04 Mastermind-sap

I can work on this

This might be a regression added by PR https://github.com/CCExtractor/taskwarrior-flutter/pull/448 Because it works fine with https://github.com/CCExtractor/taskwarrior-flutter/pull/417

SGI-CAPP-AT2 avatar Apr 04 '25 03:04 SGI-CAPP-AT2

@SGI-CAPP-AT2 I reverted the changes made by PR #448 and the issue still persists. So I don't think it is due to that. I am working on the issue and have fixed it partially.

Mastermind-sap avatar Apr 04 '25 18:04 Mastermind-sap

@SGI-CAPP-AT2 If you want you can try fixing it. I tried but there seems to be some issue I can't understand. I fixed it partially fixed it by adding unknownRoute to SplashScreen that fixed the widget click when the app is closed but when the app is in background and the widget is clicked it gets stuck in SplashScreen with that fix as the arguments passed to DetailRoute turns out to be null although it is not null when we pass it. If you have any idea why is it happening please let me know I can try fixing it or you can go ahead and fix it.

Mastermind-sap avatar Apr 05 '25 20:04 Mastermind-sap

Yes, I'll try and will let you know about problem if fixed

SGI-CAPP-AT2 avatar Apr 06 '25 01:04 SGI-CAPP-AT2