Mobile Payment SDK - iOS Forgetting Paired Reader after closing app… not sure why…
Here’s how I open the settings manager, maybe that’s why it’s not saving it?
TO be clear, i can open it, pair it, etc. but when i close the app all the way and re open it, the list is empty
func presentSettings() {
if let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene,
let rootVC = windowScene.windows.first(where: { $0.isKeyWindow })?.rootViewController {
MobilePaymentsSDK.shared.settingsManager.presentSettings(with: rootVC) { error in
if let error = error {
print(“Failed to present settings: (error.localizedDescription)”)
} else {
print(“Settings presented successfully.”)
}
}
} else {
print(“Failed to get root view controller”)
}
}
7 posts - 3 participants