diff --git a/iphone/Maps/Core/DeepLink/DeepLinkHandler.swift b/iphone/Maps/Core/DeepLink/DeepLinkHandler.swift index 52ec3cae2a..a80d68ffc5 100644 --- a/iphone/Maps/Core/DeepLink/DeepLinkHandler.swift +++ b/iphone/Maps/Core/DeepLink/DeepLinkHandler.swift @@ -57,6 +57,12 @@ private func handleDeepLink(url: URL) -> Bool { LOG(.info, "handleDeepLink: \(url)") + if url.scheme == "file" { + // Import bookmarks. + DeepLinkParser.addBookmarksFile(url) + return true // Async parsing can fail later, but here we always return true. + } + // TODO(AB): Rewrite API so iOS and Android will call only one C++ method to clear/set API state. // This call is also required for DeepLinkParser.showMap, and it also clears old API points... let urlType = DeepLinkParser.parseAndSetApiURL(url)