-
Notifications
You must be signed in to change notification settings - Fork 423
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
NetP feature usage pixels #2027
Conversation
f619d7c
to
fb16b56
Compare
func expireRegistrationKeyNow() async { | ||
guard let activeSession = try? await ConnectionSessionUtilities.activeSession() else { | ||
return | ||
} | ||
|
||
try? activeSession.sendProviderMessage(.expireRegistrationKey) | ||
} |
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.
Nice 👍
@@ -63,6 +66,12 @@ final class NetworkProtectionDebugViewController: UITableViewController { | |||
|
|||
} | |||
|
|||
enum RegistrationKeyRows: Int, CaseIterable { | |||
|
|||
case expireNow |
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.
In the future we could add last rekey date here, so it's easy to see how well this is working in real-world scenarios, but we don't need to do it here. We have a project dedicated to the debug menu which tbh I would like to break up into tasks, so it can be done as a part of that.
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.
LGTM!
Task/Issue URL: https://app.asana.com/0/0/1205537962077888/f
Description:
Pixels for determining performance and how often users are using the VPN.
m_netp_daily_active_d
m_netp_latency
latency
: An integer value representing the user's latency in millisecondsserver
: The identifier of the server, taken from the NetP server listnetwork_type
: The user's network type (one of cell, wifi, eth)m_netp_rekey_completed
Steps to test this PR:
Pixel.fire(pixelNamed…
function at L: 203Copy Testing:
’
rather than’
Orientation Testing:
Device Testing:
OS Testing:
Theme Testing:
—
Internal references:
Software Engineering Expectations
Technical Design Template