taler-ios

iOS apps for GNU Taler (wallet)
Log | Files | Refs | README | LICENSE

commit 9a7770ad3d88b4a1a18824281ed0c153ef79e238
parent 89bc49858646d74c7df0b05ce33edfebf6cb1b44
Author: Marc Stibane <marc@taler.net>
Date:   Tue,  9 Sep 2025 16:11:19 +0200

logging, checkInternetConnection

Diffstat:
MTalerWallet1/Controllers/Controller.swift | 11+++++++----
1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/TalerWallet1/Controllers/Controller.swift b/TalerWallet1/Controllers/Controller.swift @@ -100,7 +100,7 @@ class Controller: ObservableObject { default: "unknown" } self.logger.log("Internet connection is \(status)") -#if false +#if DEBUG // TODO: checkInternetConnection hintNetworkAvailabilityT DispatchQueue.main.async { if path.status == .unsatisfied { self.isConnected = false @@ -353,10 +353,10 @@ extension Controller { // } func talerScheme(_ url:URL,_ uncrypted: Bool = false) -> UrlCommand { - guard let command = url.host else {return UrlCommand.unknown} + if let command = url.host { if uncrypted { self.logger.trace("uncrypted http: taler://\(command)") - // TODO: uncrypted + // TODO: uncrypted taler+http } switch command.lowercased() { case "withdraw": return .withdraw @@ -374,6 +374,9 @@ extension Controller { self.logger.error("❗️unknown command taler://\(command)") } messageForSheet = command.lowercased() - return .unknown + } else { + self.logger.error("❗️No taler command") + } + return .unknown } }