a problem repeatedly occurred message happens on safari for ios 15+ (Flutter web app)

Viewed 23

Good morning guys,
I'm building a web app using Flutter, while testing it on iphone it working good in all versions except 15+, i good message "a problem repeatedly occurred"..
enter image description here
this issue only happens for this screen
i tried many solutions to know why this happens.. one of them is to remove all this images (local images) and it works fine, so i tried to find solution for images and i followed this article but nothing happened
also i tried webGL2 issue in index file but unfortunately nothing happened too
this is my index file:

<head>
<script>
// The value below is injected by flutter build, do not touch.
var serviceWorkerVersion = null;

</script>
<!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script>

<script src="https://unpkg.com/platform@1.3.5/platform.js"></script>
<script type="text/javascript">
let isSafari = /^((?!chrome|android).)*safari/i.test(platform.ua);
if (isSafari) {
  HTMLCanvasElement.prototype.getContext = function (orig) {
    return function (type) {
      return type !== "webgl2" ? orig.apply(this, arguments) : null
    }
  }(HTMLCanvasElement.prototype.getContext)
}

</script>
<body>
<script>
    let useHtml = false;
    if (useHtml) {
      window.flutterWebRenderer = "html";
    } else {
      window.flutterWebRenderer = "canvaskit";
    }

    window.addEventListener('load', function (ev) {
      // Download main.dart.js
      _flutter.loader.loadEntrypoint({
        serviceWorker: {
          serviceWorkerVersion: serviceWorkerVersion,
        }
      }).then(function (engineInitializer) {
        return engineInitializer.initializeEngine();
      }).then(function (appRunner) {
        return appRunner.runApp();
      });
    });
</script>

i hope any one can give me a hand

0 Answers
Related