FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: Android widget cold start crash and routing failure by Apprentice2907 · Pull Request #600 · CCExtractor/taskwarrior-flutter · GitHub

fix: Android widget cold start crash and routing failure - #600

Closed
Apprentice2907 wants to merge 12 commits into
CCExtractor:mainfrom
Apprentice2907:FIxes-ndroid-Widget-crashes
Closed

fix: Android widget cold start crash and routing failure#600
Apprentice2907 wants to merge 12 commits into
CCExtractor:mainfrom
Apprentice2907:FIxes-ndroid-Widget-crashes

Conversation

Copy link
Copy Markdown
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.

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

Copy link
Copy Markdown
Collaborator

@Apprentice2907

 lib/app/modules/home/controllers/home_controller.dart:54:31: Error: The class 'Sentences' is abstract and can't be instantiated.
  final Sentences sentences = Sentences();
                              ^^^^^^^^^
lib/app/modules/home/controllers/home_controller.dart:596:34: Error: Member not found: 'TASKSERVER_SETUP'.
              Get.toNamed(Routes.TASKSERVER_SETUP),
                                 ^^^^^^^^^^^^^^^^
lib/app/modules/home/controllers/home_controller.dart:596:50: Error: Expected ';' after this.
              Get.toNamed(Routes.TASKSERVER_SETUP),
                                                 ^
lib/app/modules/home/controllers/home_controller.dart:596:51: Error: Expected an identifier, but got ','.
Try inserting an identifier before ','.
              Get.toNamed(Routes.TASKSERVER_SETUP),
                                                  ^
lib/app/modules/home/controllers/home_controller.dart:596:51: Error: Unexpected token ';'.
              Get.toNamed(Routes.TASKSERVER_SETUP),
                                                  ^
lib/app/modules/taskc_details/controllers/taskc_details_controller.dart:87:23: Error: The getter 'depends' isn't defined for the class 'TaskForReplica'.
 - 'TaskForReplica' is from 'package:taskwarrior/app/v3/champion/models/task_for_replica.dart' ('lib/app/v3/champion/models/task_for_replica.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'depends'.
      depends = (task.depends ?? []).obs;
                      ^^^^^^^
Target kernel_snapshot_program failed: Exception


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileFlutterBuildProductionDebug'.
> Process 'command '/Users/XXXX/fvm/versions/3.29.2/bin/flutter'' finished with non-zero exit value 1

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 3s
Running Gradle task 'assembleProductionDebug'...                    4.3s
Error: Gradle task assembleProductionDebug failed with exit code 1

Copy link
Copy Markdown
Collaborator

There are these errors and also this PR has commits from some other branch please discard those
main should be base for new PRs

Copy link
Copy Markdown
Collaborator

Fixes by #609

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

2 participants


Back | FazBrowse Home | New Git URL