From cca41d5f3f5ae899377c8f688f11f4f550330509 Mon Sep 17 00:00:00 2001 From: Tafel <35837839+tafelnl@users.noreply.github.com> Date: Mon, 30 Sep 2024 15:03:58 +0200 Subject: [PATCH] fix: ensure webview becomes tranparent (#238) Since a while it seems there is a race condition problem where the webview doesn't get setup in time. This seems to occur because of either A) a OTA update from Maps itself or B) an iOS update --- ios/Plugin/Plugin.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ios/Plugin/Plugin.swift b/ios/Plugin/Plugin.swift index 13048304..b19c6611 100644 --- a/ios/Plugin/Plugin.swift +++ b/ios/Plugin/Plugin.swift @@ -73,6 +73,10 @@ public class CapacitorGoogleMaps: CustomMapViewEvents { customMapView.GMapView.delegate = customMapView; self.customWebView?.customMapViews[customMapView.id] = customMapView + + DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) { + self.setupWebView() + } } }