Skip to content

[💡 Feature]: Make the auto dismiss timer configurable #45

@mikaoelitiana

Description

@mikaoelitiana

Currently, the auto dismiss of ticket scan redeem result is set to 15 seconds

@objc func setupAutoDismiss() {
timer?.invalidate()
print("starting count down")
let delay = 15.0 // seconds
let dismissTimer = Timer(timeInterval: delay, target: self, selector: #selector(dismissVC), userInfo: nil, repeats: false)
RunLoop.main.add(dismissTimer, forMode: .common)
timer = dismissTimer
}

It would be great if the delay value could be changed from the app settings in order to decrease it. On big events with people queuing at the entrance, it can be beneficial to reduce that delay to 2 or 3 seconds.

An additional idea is to also disable auto dismissal when the ticket scan has an error. Currently it is only disabled when ticket status is incomplete :

if let redemptionResponse, redemptionResponse.status == .incomplete {
// we need to ask questions
stopCountDown()
updateQuestionsAndAnswers(redemptionResponse)
showQuestions()
} else {
announceResult(redemptionResponse, nil)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions