Skip to content

Commit

Permalink
fix: ensure webview becomes tranparent (#238)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
tafelnl authored Sep 30, 2024
1 parent 9959974 commit cca41d5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ios/Plugin/Plugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
}

Expand Down

0 comments on commit cca41d5

Please sign in to comment.