onProgressChanged appears only when Loading in iOS, but not when changing pages. #2422
Replies: 2 comments 1 reply
-
No, it should work out of the box as it is a very basic event. |
Beta Was this translation helpful? Give feedback.
-
Thank you. My source code and Android, iOS logs are below. [Source Code] import 'package:flutter/material.dart'; import '../common/Const.dart'; class WebViewPageTest extends StatefulWidget { class _WebViewPageTestState extends State @OverRide @OverRide void showExitDialog() { Future getCurrentUrl() async { return currentUrl; Future getCurrentUri() async { return currentUri!; String mainPageUrl = '${MainController.to.domainUrl.value}$URL_MAIN'; @OverRide if (webViewController != null) { bool canGoBack = await webViewController!.canGoBack(); if (canGoBack) { Android ======================================================================================== [Page Move log] iOS ======================================================================================== [Page Move log] |
Beta Was this translation helpful? Give feedback.
-
Hello.
onProgressChanged appears only when Loading in iOS, but not when changing pages.
In Android, it is called not only when Loading, but also when changing pages.
initialSettings: InAppWebViewSettings( javaScriptEnabled: true, mediaPlaybackRequiresUserGesture: false, allowsInlineMediaPlayback: true, useHybridComposition: true, ),
onProgressChanged: (controller, progress) { print("WebViewPage onProgressChanged: $progress%"); },
flutter_inappwebview: ^6.1.0+1
iOS: 17.3.1
[✓] Flutter (Channel stable, 3.24.3, on macOS 14.7.1 23H222 darwin-arm64, locale ko-KR)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.1)
Is there anything else I need to set?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions