Skip to content

Commit 784a4bf

Browse files
committed
(ios) Adding ability to receive a payment via NFC (bolt card)
1 parent e014784 commit 784a4bf

5 files changed

Lines changed: 365 additions & 22 deletions

File tree

phoenix-ios/phoenix-ios/Localizable.xcstrings

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6915,6 +6915,9 @@
69156915
}
69166916
}
69176917
}
6918+
},
6919+
"Awaiting payment…" : {
6920+
69186921
},
69196922
"Back" : {
69206923
"localizations" : {
@@ -8733,6 +8736,9 @@
87338736
}
87348737
}
87358738
},
8739+
"card" : {
8740+
"comment" : "button label - try to make it short"
8741+
},
87368742
"Caused by" : {
87378743
"localizations" : {
87388744
"ar" : {
@@ -10563,6 +10569,9 @@
1056310569
},
1056410570
"Communicating with card reader." : {
1056510571

10572+
},
10573+
"Communicating with card's host…" : {
10574+
1056610575
},
1056710576
"completed at" : {
1056810577
"comment" : "Label in DetailsView_IncomingPayment",
@@ -12185,6 +12194,12 @@
1218512194
}
1218612195
}
1218712196
},
12197+
"Could not communicate with card's wallet" : {
12198+
"comment" : "Error message - scanning lightning invoice"
12199+
},
12200+
"Could not connect to card's host" : {
12201+
"comment" : "Error message - processing bolt card payment"
12202+
},
1218812203
"Could not connect to host:" : {
1218912204
"localizations" : {
1219012205
"ar" : {
@@ -12387,6 +12402,9 @@
1238712402
}
1238812403
}
1238912404
}
12405+
},
12406+
"Cound not communicate with card's wallet" : {
12407+
1239012408
},
1239112409
"Create new contact" : {
1239212410

@@ -15056,6 +15074,9 @@
1505615074
}
1505715075
}
1505815076
}
15077+
},
15078+
"Does not appear to be a bolt card." : {
15079+
1505915080
},
1506015081
"Don't lose your funds:" : {
1506115082
"localizations" : {
@@ -27574,6 +27595,9 @@
2757427595
}
2757527596
}
2757627597
}
27598+
},
27599+
"No URI detected in NFC tag" : {
27600+
2757727601
},
2757827602
"No URI or text detected in NFC tag" : {
2757927603

@@ -32352,6 +32376,9 @@
3235232376
}
3235332377
}
3235432378
}
32379+
},
32380+
"Reading card…" : {
32381+
3235532382
},
3235632383
"Ready For Swap" : {
3235732384
"localizations" : {
@@ -33199,6 +33226,9 @@
3319933226
}
3320033227
}
3320133228
}
33229+
},
33230+
"Requesting payment…" : {
33231+
3320233232
},
3320333233
"Requesting Swap-In Address..." : {
3320433234
"extractionState" : "manual",
@@ -38657,6 +38687,12 @@
3865738687
}
3865838688
}
3865938689
},
38690+
"The card's host returned error code: %d" : {
38691+
"comment" : "Error message - processing bolt card payment"
38692+
},
38693+
"The card's host returned error message: %@" : {
38694+
"comment" : "Error message - processing bolt card payment"
38695+
},
3866038696
"The closing transaction is in your transactions list." : {
3866138697
"comment" : "label text",
3866238698
"localizations" : {
@@ -43721,6 +43757,9 @@
4372143757
}
4372243758
}
4372343759
},
43760+
"Unreadable response from card's host" : {
43761+
"comment" : "Error message - processing bolt card payment"
43762+
},
4372443763
"Unreadable response from service: %@" : {
4372543764
"comment" : "Error message - scanning lightning invoice",
4372643765
"localizations" : {

phoenix-ios/phoenix-ios/nfc/NfcReader.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,5 +129,9 @@ class NfcReader: NSObject, NFCNDEFReaderSessionDelegate {
129129
finishWithSuccess(message)
130130
}
131131
}
132-
132+
133+
/* Note: When this delegate function exists, it seems to break functionality on iOS 16.
134+
func readerSession(_ session: NFCNDEFReaderSession, didDetect tags: [any NFCNDEFTag]) {
135+
}
136+
*/
133137
}

0 commit comments

Comments
 (0)