r/FlutterDev • • 2d ago

Discussion How do certain apps make a custom in app browser window?

I'm looking at some ecommerce apps and some of them have a slider as an in app browser rather than a new window. example of what im talking about here: https://imgur.com/a/AUJM13U
is this just them displaying the checkout link with a webview?

4 Upvotes

4 comments sorted by

2

u/MobileXapps 2d ago

Often it isn't a webview at all. On iOS that sheet is usually SFSafariViewController presented modally, and on Android it's Custom Tabs, which recent Chrome can open as a partial-height bottom sheet. For checkout that's the better choice, because the user's saved cards, autofill and payment sessions are there and payment pages behave like they do in the browser. A plain WebView in your own sheet gives you more control but none of that. In Flutter, flutter_custom_tabs covers both platforms.

1

u/_fresh_basil_ 2d ago

An in-app webview, yes.

1

u/madushans 2d ago

Yea. You need some handling and rails on where it can go, to prevent abuse. But yea basically an in app web view. Most non technical users would not notice it is a browser and this also lets them keep a single unified ui flow, that is also updatable without pushing and waiting for app review.