You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Read this First
If you have a Trusted Web Activity related question, the best place to ask it is on StackOverflow, on the trusted-web-activity tag, which is also monitored by the team.
Is your feature request related to a problem? Please describe.
Our project has been utilizing android-browser-helper to launch our web app as a Trusted Web Activity (TWA) for a couple years already. We've implemented this by extending the LauncherActivity class and adding custom functionality. As our project has evolved, we've encountered the following challenges:
Increased Complexity: Our LauncherActivity subclass and its dependencies have grown significantly due to additional pre-launch checks and customizations.
Dependency Injection Incompatibility: We aim to use Hilt for dependency injection to improve our development process. However, Hilt requires activities to extend AppCompatActivity, while LauncherActivity currently extends Activity.
Describe the solution you'd like
We propose that LauncherActivity be modified to extend AppCompatActivity instead of Activity. This change would enable us to:
Utilize Hilt for dependency injection in our TWA launcher.
Streamline our codebase and improve maintainability.
Leverage modern Android development practices and tools.
Describe alternatives you've considered
Implementing a custom LauncherActivity that extends AppCompatActivity. This approach has significant drawbacks:
Code duplication: We would likely need to replicate most of the existing LauncherActivity code.
Maintenance burden: Our custom implementation would require ongoing updates to stay in sync with the official LauncherActivity.
Additional context
N/A
The text was updated successfully, but these errors were encountered:
Read this First
If you have a Trusted Web Activity related question, the best place to ask it is on StackOverflow, on the
trusted-web-activity tag, which is also monitored by the team.
Is your feature request related to a problem? Please describe.
Our project has been utilizing
android-browser-helper
to launch our web app as a Trusted Web Activity (TWA) for a couple years already. We've implemented this by extending theLauncherActivity
class and adding custom functionality. As our project has evolved, we've encountered the following challenges:LauncherActivity
subclass and its dependencies have grown significantly due to additional pre-launch checks and customizations.AppCompatActivity
, whileLauncherActivity
currently extendsActivity
.Describe the solution you'd like
We propose that
LauncherActivity
be modified to extendAppCompatActivity
instead ofActivity
. This change would enable us to:Describe alternatives you've considered
Implementing a custom
LauncherActivity
that extendsAppCompatActivity
. This approach has significant drawbacks:LauncherActivity
code.LauncherActivity
.Additional context
N/A
The text was updated successfully, but these errors were encountered: