-
Notifications
You must be signed in to change notification settings - Fork 5
[23926] - Store & Show Challenges from Notification Extension. #188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[23926] - Store & Show Challenges from Notification Extension. #188
Conversation
var bestAttemptContent: UNMutableNotificationContent? | ||
|
||
private lazy var twilioVerify: TwilioVerify? = try? TwilioVerifyBuilder() | ||
.setAccessGroup("group.company.identifier") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could add a TODO for setting the customer's correct access group. Should we use the access group for the sample app in order to generate builds for testing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added #warning
instead, that would be more visible.
#endif | ||
twilioVerify = try builder.build() | ||
twilioVerify = try builder | ||
.setAccessGroup("group.company.identifier") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could add a TODO for setting the customer's correct access group. Should we use the access group for the sample app in order to generate builds for testing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And we can include also where to update the access group for the extension
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added #warning instead, that would be more visible. Also mentioned the NotificationExtension.
import XCTest | ||
@testable import TwilioVerifyDemoCache | ||
|
||
final class TwilioVerifyDemoCacheTests: XCTestCase { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we need this?
public var algorithm = kSecAttrKeyTypeECSECPrimeRandom as String | ||
public var signatureAlgorithm = SecKeyAlgorithm.ecdsaSignatureMessageX962SHA256 | ||
public var accessControl: SecAccessControl | ||
public var accessGroup: String? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update the base branch to not see the changes for the SDK
625966d
to
c5b2840
Compare
} | ||
|
||
func updateChallenge(withSid sid: String, withFactor factor: PushFactor, status: ChallengeStatus, success: @escaping EmptySuccessBlock, failure: @escaping TwilioVerifyErrorBlock) { | ||
func updateChallenge( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Function should have complexity 10 or less: currently complexity equals 11cyclomatic_complexity PushChallengeProcessor.swift:54 |
} | ||
|
||
func updateChallenge(withSid sid: String, withFactor factor: PushFactor, status: ChallengeStatus, success: @escaping EmptySuccessBlock, failure: @escaping TwilioVerifyErrorBlock) { | ||
func updateChallenge( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Function body should span 40 lines or less excluding comments and whitespace: currently spans 60 linesfunction_body_length PushChallengeProcessor.swift:54 |
c5b2840
to
a758bd6
Compare
a758bd6
to
2c6609e
Compare
2c6609e
to
b1b2013
Compare
Ticket
Description
Testing