Skip to content

feat(twa-launcher): allow adding extra to twa intent#562

Open
dargmuesli wants to merge 1 commit intoGoogleChrome:mainfrom
dargmuesli:feat/twa-launcher/extra
Open

feat(twa-launcher): allow adding extra to twa intent#562
dargmuesli wants to merge 1 commit intoGoogleChrome:mainfrom
dargmuesli:feat/twa-launcher/extra

Conversation

@dargmuesli
Copy link
Copy Markdown
Contributor

Allows setting custom headers for TwaLauncher.
Resolves #329

See implementation example in:

@gstepniewski-google gstepniewski-google force-pushed the feat/twa-launcher/extra branch from 561315a to 0623881 Compare May 6, 2026 11:43
}
}

protected TrustedWebActivityIntent getIntent(TrustedWebActivityIntent intent) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add javadoc explaining what this method does and how it should be used.
Also consider changing the name to something a little more fitting: getIntent is a method defined by many Android components and used to obtain the starting Intent - meanwhile this one is meant to allow subclasses to customize the Intent before passing it back.

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.

Custom headers with TWALauncher

2 participants