Skip to content

Commit

Permalink
Add sdk / sdk version to chrome custom tabs request
Browse files Browse the repository at this point in the history
Summary: Webview requests has sdk request param so we know it's android sdk and the sdk version. We should do the same for CCT

Reviewed By: Mxiim

Differential Revision: D18630749

fbshipit-source-id: 08c2518d942416fb86adaa32b52fae9e42604d92
  • Loading branch information
Calvin Mak authored and facebook-github-bot committed Nov 21, 2019
1 parent f5964e8 commit 96e51d5
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ protected Bundle addExtraParameters(Bundle parameters, final LoginClient.Request
parameters.putString(
ServerProtocol.DIALOG_PARAM_AUTH_TYPE,
request.getAuthType());
parameters.putString(
ServerProtocol.DIALOG_PARAM_SDK_VERSION,
String.format(Locale.ROOT, "android-%s", FacebookSdk.getSdkVersion()));
if (getSSODevice() != null) {
parameters.putString(ServerProtocol.DIALOG_PARAM_SSO_DEVICE, getSSODevice());
}
Expand Down

0 comments on commit 96e51d5

Please sign in to comment.