Invocation

  1. You can trigger the Truecaller profile verification dialog anywhere in your app flow by calling the following method

TcSdk.getInstance().getAuthorizationCode(this, launcher)

where the launcher is derived in step 5 (Implementing Callback) In case isOAuthFlowUsable() method returns false, implying that the Truecaller app is not present on the device, you can take the user to your app screen and continue with the verification flow for non-Truecaller users or implement your fallback verification mechanism.

Please note that the instance you pass in the method above should be of the activity/fragment where you have initialized the SDK.

Last updated