flutter_custom_tabs icon indicating copy to clipboard operation
flutter_custom_tabs copied to clipboard

Warmup browser

Open ymmooot opened this issue 1 year ago • 2 comments

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?

ymmooot avatar Jan 17 '24 09:01 ymmooot

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.

droibit avatar Jan 24 '24 11:01 droibit

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?

Satendra9984 avatar Oct 23 '24 06:10 Satendra9984

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

droibit avatar Nov 05 '24 11:11 droibit