Can't load file on ionic 5
MODIFY
src/ios/GoogleMaps/PluginGroundOverlay.m
src/ios/GoogleMaps/PluginGroundOverlay.m
iconPath = [iconPath regReplace:@"^.*assets/" replaceTxt:[NSString stringWithFormat:@"%@/assets/", wwwPath] options:NSRegularExpressionCaseInsensitive];
}
// iconPath = [iconPath stringByReplacingOccurrencesOfString:wwwPath withString: @""];
+
+ // ionic 4
iconPath = [iconPath stringByReplacingOccurrencesOfString:@"http://localhost:8080" withString: wwwPath];
+ // ionic 5
+ iconPath = [iconPath stringByReplacingOccurrencesOfString:@"ionic://localhost" withString: wwwPath];
+
if ([iconPath hasPrefix:@"file://"] || [iconPath hasPrefix:@"/"]) {
iconPath = [iconPath stringByReplacingOccurrencesOfString:@"file://" withString:@""];
if (![iconPath hasPrefix:@"/"]) {

MODIFY
src/ios/GoogleMaps/PluginKmlOverlay.m
src/ios/GoogleMaps/PluginKmlOverlay.m
wwwPath = [wwwPath stringByReplacingOccurrencesOfString:@"/cordova.js" withString:@""];
// urlStr = [urlStr stringByReplacingOccurrencesOfString:wwwPath withString: @""];
+
+ // ionic 4
urlStr = [urlStr stringByReplacingOccurrencesOfString:@"http://localhost:8080" withString: wwwPath];
+ // ionic 5
+ urlStr = [urlStr stringByReplacingOccurrencesOfString:@"ionic://localhost" withString: wwwPath];
+
if ([urlStr hasPrefix:@"http://"] || [urlStr hasPrefix:@"https://"]) {
NSURLRequest *req = [NSURLRequest requestWithURL:[NSURL URLWithString:urlStr]];
-(NSMutableDictionary *)parseXml:(TBXML *)tbxml rootElement:(TBXMLElement *)rootElement
{
+ if (rootElement == nil) {
+ return nil;
+ }
NSMutableDictionary *result = [NSMutableDictionary dictionary];
NSString *tagName = [[TBXML elementName:rootElement] lowercaseString];
NSString *styleId, *schemaId, *txt;

MODIFY
src/ios/GoogleMaps/PluginMarker.m
src/ios/GoogleMaps/PluginMarker.m
urlStr = [urlStr regReplace:@"^.*assets" replaceTxt:[NSString stringWithFormat:@"%@/assets/", wwwPath] options:NSRegularExpressionCaseInsensitive];
}
// urlStr = [urlStr stringByReplacingOccurrencesOfString:wwwPath withString: @""];
+
+ // ionic 4
urlStr = [urlStr stringByReplacingOccurrencesOfString:@"http://localhost:8080" withString: wwwPath];
+ // ionic 5
+ urlStr = [urlStr stringByReplacingOccurrencesOfString:@"ionic://localhost" withString: wwwPath];
+
+
if ([urlStr hasPrefix:@"file:"] || [urlStr hasPrefix:@"/"]) {
NSString *iconPath = [urlStr stringByReplacingOccurrencesOfString:@"file:" withString:@""];
NSFileManager *fileManager = [NSFileManager defaultManager];

Can't load file on ionic 5