Skip to content

Commit

Permalink
fix: Correct api key usage on iOS NotificationService (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
erdemyerebasmaz authored Oct 16, 2024
1 parent 3a6785d commit 064a0b6
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions ios/NotificationService/NotificationService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,20 @@ class NotificationService: SDKNotificationService {
return nil
}
self.logger.log(tag: TAG, line: "API_KEY: \(apiKey)", level: "TRACE")
var config = defaultConfig(network: LiquidNetwork.mainnet, apiKey: apiKey)

var config: Config
do {
config = try defaultConfig(network: LiquidNetwork.mainnet, breezApiKey: apiKey)
} catch {
self.logger.log(tag: TAG, line: "Failed to get default config: \(error)", level: "ERROR")
return nil
}

config.workingDir = FileManager
.default.containerURL(forSecurityApplicationGroupIdentifier: accessGroup)!
.path
.path

// Construct the ConnectRequest
// Construct the ConnectRequest
guard let mnemonic = KeychainHelper.shared.getFlutterString(accessGroup: accessGroup, key: accountMnemonic) else {
self.logger.log(tag: TAG, line: "Mnemonic not found", level: "ERROR")
return nil
Expand Down

0 comments on commit 064a0b6

Please sign in to comment.