1
onPageStarted: (url) async {
                  var controller = await _controller.future;
                  await controller.runJavascript(_historyJavascriptCode);
                  if (javascriptCodeOnStart != null) {
                    for (String jscode in javascriptCodeOnStart!) {
                      await controller.runJavascript(jscode);
                    }
                  }
                },

this only effects when the app is first opened, when i open it again, it fails. it just happens on ios newer than 15.0

webview_flutter: ^3.0.4 ios 15.5

lynn
  • 49
  • 4
  • its ok after i put them into the onPageFinished method, maybe onPageStarted needs some fix – lynn Jun 07 '22 at 05:10

0 Answers0