Skip to content

Commit

Permalink
ios wip
Browse files Browse the repository at this point in the history
  • Loading branch information
benma committed Sep 30, 2024
1 parent 6c8455c commit 25d9493
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion backend/mobileserver/mobileserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,6 @@ func AuthResult(ok bool) {
}

// ManualReconnect wraps bridgecommon.ManualReconnet
func AuthResult() {
func ManualReconnect() {
bridgecommon.ManualReconnect()
}
7 changes: 4 additions & 3 deletions frontends/ios/BitBoxApp/BitBoxApp/BitBoxAppApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import SwiftUI
import Mobileserver
import LocalAuthentication
import UIKit

func authenticateUser(completion: @escaping (Bool) -> Void) {
let context = LAContext()
Expand Down Expand Up @@ -105,10 +106,9 @@ class GoAPI: NSObject, MobileserverGoAPIInterfaceProtocol, SetMessageHandlersPro
}
}


@main
struct BitBoxAppApp: App {
var body: some Scene {
var body: some Scene {
WindowGroup {
GridLayout(alignment: .leading) {
let goAPI = GoAPI()
Expand All @@ -118,7 +118,8 @@ struct BitBoxAppApp: App {
setupGoAPI(goAPI: goAPI)
}
.onReceive(NotificationCenter.default.publisher(for: UIApplication.willEnterForegroundNotification)) { _ in
MobileserverTriggerAuth()
MobileserverManualReconnect()
MobileserverTriggerAuth()
}
}
}
Expand Down

0 comments on commit 25d9493

Please sign in to comment.