Skip to content

@W-17291582: [Android] [Instrumentation] Add QR Code feature logging to track adoption #2647

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

Conversation

JohnsonEricAtSalesforce
Copy link
Contributor

🎸 Ready For Review 🥁

This one follows along with recent changes to add a feature code for Native Login in #2637.

* Authorization Flow but is required for Web Server Authorization Flow
*/
@Suppress("MemberVisibilityCanBePrivate")
fun loginWithFrontdoorBridgeUrl(
frontdoorBridgeUrl: String,
pkceCodeVerifier: String?
) = webviewHelper?.loginWithFrontdoorBridgeUrl(frontdoorBridgeUrl, pkceCodeVerifier)
) {
SalesforceSDKManager.getInstance().registerUsedAppFeature(FEATURE_QR_CODE_LOGIN)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should move this up one call to loginWithFrontdoorBridgeUrlFromQrCode so we don't miss-report QR usage if loginWithFrontdoorBridgeUrl is used for another flow.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea. Check out today's commit 🎉

…to track adoption (Move feature logging to a QR-Code named method)
@JohnsonEricAtSalesforce JohnsonEricAtSalesforce merged commit 506bfe4 into forcedotcom:dev Jan 3, 2025
1 of 2 checks passed
@JohnsonEricAtSalesforce JohnsonEricAtSalesforce deleted the feature/w-17291582_android-instrumentation-add-qr-code-feature-logging-to-track-adoption branch January 3, 2025 22:54
Copy link
Contributor

@wmathurin wmathurin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants