Skip to content

Use flutter_inappwebview instead to support windows, macos, and web #33

Open

Description

@Osama-Al-Fawaz

https://pub.dev/packages/flutter_inappwebview

Migration should be straightforward

Activity

  1. jobenjada commented on Aug 20, 2026

    @jobenjada
    Member

    Thanks for raising this issue, it got a bit lost here. We'll look into it.

  2. pandeymangg commented on Sep 28, 2026

    @pandeymangg
    Contributor

    Hi @Osama-Al-Fawaz thanks for the suggestion, and sorry it took us a while to get back to you 🙏

    We looked into moving to flutter_inappwebview and wanted to share what we found before deciding anything:

    • webview_flutter, which the SDK uses today, is maintained by the Flutter team and gets regular releases. The last stable release of flutter_inappwebview was in October 2024.
    • The switch alone wouldn't give full support on the new platforms. On web, flutter_inappwebview doesn't support JavaScript handlers, which the SDK needs to hear back from the survey (display, response, close). On Windows, it can't intercept navigation, which the SDK uses to decide which links stay in the survey and which open in the browser.

    So the package itself may not be what gets you there, but we'd like to support the platforms you need:

    • macOS: webview_flutter already supports it, so we could turn it on in the SDK without changing packages.
    • Web: Flutter web already runs in the browser, so loading the survey script straight into the page may work better than a WebView.
    • Windows: this needs a Windows-specific WebView. We'd look into the options if it's important for you.

    Could you tell us which of these platforms you need, and which one matters most? And if there's something in flutter_inappwebview you rely on that we've missed, please let us know. That will help us plan the work.

  3. Osama-Al-Fawaz commented on Oct 14, 2026

    @Osama-Al-Fawaz
    Author

    Hi @Osama-Al-Fawaz thanks for the suggestion, and sorry it took us a while to get back to you 🙏

    We looked into moving to flutter_inappwebview and wanted to share what we found before deciding anything:

    • webview_flutter, which the SDK uses today, is maintained by the Flutter team and gets regular releases. The last stable release of flutter_inappwebview was in October 2024.
    • The switch alone wouldn't give full support on the new platforms. On web, flutter_inappwebview doesn't support JavaScript handlers, which the SDK needs to hear back from the survey (display, response, close). On Windows, it can't intercept navigation, which the SDK uses to decide which links stay in the survey and which open in the browser.

    So the package itself may not be what gets you there, but we'd like to support the platforms you need:

    • macOS: webview_flutter already supports it, so we could turn it on in the SDK without changing packages.
    • Web: Flutter web already runs in the browser, so loading the survey script straight into the page may work better than a WebView.
    • Windows: this needs a Windows-specific WebView. We'd look into the options if it's important for you.

    Could you tell us which of these platforms you need, and which one matters most? And if there's something in flutter_inappwebview you rely on that we've missed, please let us know. That will help us plan the work.

    Hello, sorry for the late response. As for the platforms we currently need with flutter we have ios, android, macos, windows. We will support linux in the future but web is not a consideration.
    As for your concerns with flutter_inappwebview i dont believe there are technical limitations but i understand the concerns:

    • it has indeed been a while since last update but the package is very stable. As long as the platform is supported (windows) and your package handles things internally it is fine for us regardless of the solution used.
    • JavaScript handlers: these are supported and mentioned in the docs https://inappwebview.dev/docs/webview/javascript/communication in fact we utilize these handlers ourselves.
    • Navigation interception: this is also supported out of the box and you can find the docs here: https://inappwebview.dev/docs/webview/in-app-webview (look for "Handle page navigation") onLoadStart and onLoadStop will help you here but if the navigation is triggered in the webview through javascript you can use onUpdateVisitedHistory and To cancel or allow the navigation requests, you should use the navigation event shouldOverrideUrlLoading, which gives the host application a chance to take control when a URL is about to be loaded in the current WebView using NavigationActionPolicy.

    This is all mentioned in the docs with greater detail.

  4. pandeymangg commented on Oct 16, 2026

    @pandeymangg
    Contributor

    Hi @Osama-Al-Fawaz thanks for the suggestion, and sorry it took us a while to get back to you 🙏
    We looked into moving to flutter_inappwebview and wanted to share what we found before deciding anything:

    • webview_flutter, which the SDK uses today, is maintained by the Flutter team and gets regular releases. The last stable release of flutter_inappwebview was in October 2024.
    • The switch alone wouldn't give full support on the new platforms. On web, flutter_inappwebview doesn't support JavaScript handlers, which the SDK needs to hear back from the survey (display, response, close). On Windows, it can't intercept navigation, which the SDK uses to decide which links stay in the survey and which open in the browser.

    So the package itself may not be what gets you there, but we'd like to support the platforms you need:

    • macOS: webview_flutter already supports it, so we could turn it on in the SDK without changing packages.
    • Web: Flutter web already runs in the browser, so loading the survey script straight into the page may work better than a WebView.
    • Windows: this needs a Windows-specific WebView. We'd look into the options if it's important for you.

    Could you tell us which of these platforms you need, and which one matters most? And if there's something in flutter_inappwebview you rely on that we've missed, please let us know. That will help us plan the work.

    Hello, sorry for the late response. As for the platforms we currently need with flutter we have ios, android, macos, windows. We will support linux in the future but web is not a consideration. As for your concerns with flutter_inappwebview i dont believe there are technical limitations but i understand the concerns:

    * it has indeed been a while since last update but the package is very stable. As long as the platform is supported (windows) and your package handles things internally it is fine for us regardless of the solution used.
    
    * JavaScript handlers: these are supported and mentioned in the docs https://inappwebview.dev/docs/webview/javascript/communication in fact we utilize these handlers ourselves.
    
    * Navigation interception: this is also supported out of the box and you can find the docs here: https://inappwebview.dev/docs/webview/in-app-webview (look for "Handle page navigation") `onLoadStart` and `onLoadStop` will help you here but if the navigation is triggered in the webview through javascript you can use `onUpdateVisitedHistory` and To cancel or allow the navigation requests, you should use the navigation event `shouldOverrideUrlLoading`, which gives the host application a chance to take control when a URL is about to be loaded in the current WebView using `NavigationActionPolicy`.
    

    This is all mentioned in the docs with greater detail.

    Hi @Osama-Al-Fawaz, thanks for the detailed reply and the doc links.

    You're right about navigation thatflutter_inappwebview does support shouldOverrideUrlLoading on Windows. My earlier comment was wrong there, sorry about that. I'd also like to correct one thing that I said about macOS. webview_flutter can't make the WebView see-through on macOS, and our survey overlay needs that, so macOS also isn't as simple as getting support out of the box.

    Supporting macOS and Windows therefore would mean adding flutter_inappwebview alongside webview_flutter, then testing and maintaining both. We talked it through as a team and decided not to take that on for now. For the time being, the Flutter SDK will stay on iOS and Android.

    If desktop support turns out to be a blocker for you, please let us know here. We're happy to look at it again, and it would help to hear how it affects your plans.

    Thanks again for taking the time to dig into this with us 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions