Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warmup browser #175

Closed
ymmooot opened this issue Jan 17, 2024 · 3 comments
Closed

Warmup browser #175

ymmooot opened this issue Jan 17, 2024 · 3 comments

Comments

@ymmooot
Copy link

ymmooot commented Jan 17, 2024

There is a warmup API on CustomTabsClient.
https://developer.android.com/reference/androidx/browser/customtabs/CustomTabsClient#warmup(long)

Do you have any plan to implement it to be able to call it from flutter?

@droibit
Copy link
Owner

droibit commented Jan 24, 2024

Thank you for the feedback.

I do not have any plans to implement the warmup API at this time,
but I will consider supporting it after the stable release of v2.0.0.

@Satendra9984
Copy link

Satendra9984 commented Oct 23, 2024

Yes it will be a good feature as prefetching the urls is needed for seamless experience. Can you tell me if prefetching is already implemented as I need it as the warmup session is maintained until the app is open ?
In my app I need preload of previously visited urls so that next time it is faster and snappy.
Please tell any approach for this.

How to Prewarm Chrome Custom Tabs
To use the Chrome Custom Tabs prewarming mechanism:

Initialize Chrome Custom Tabs ahead of time using the warmUp() method:

await customChromeTabs.warmUp();
Preconnect to the URL using mayLaunchUrl() to start loading and pre-establishing connections:

await customChromeTabs.mayLaunchUrl(uri);

These methods allow Chrome Custom Tabs to reuse the TCP/TLS connections and load resources faster, leading to significant performance benefits.

Why these methods are not available i got these through chatgpt?

@droibit
Copy link
Owner

droibit commented Nov 5, 2024

Closing this issue as it is a duplicate of #210 .
Please continue the discussion there.

@droibit droibit closed this as completed Nov 5, 2024
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

No branches or pull requests

3 participants