I am trying to implement the Truecaller android-SDK for Sign In/Sign Up on one of my personal app. I received the partner key from truecaller to implement it in my app. Error occurs on pressing 'Autofill with truecaller' returns the 'Error Code 3' on 'trueError.getErrorType( )' in 'public void onFailureProfileShared()'. I can't seem to find the method for describing the error. Does anyone happen to know to fix this error?
My implementation:
public class auth extends AppCompatActivity implements ITrueCallback{ private TrueButton truebutton = null; private TrueClient trueClient = null; private String mTruecallerRequestNonce = null; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_auth); truebutton = (TrueButton) findViewById(R.id.com_truecaller_android_sdk_truebutton); boolean isUsable = truebutton.isUsable(); if(isUsable) { trueClient = new TrueClient(auth.this, auth.this); truebutton.setTrueClient(trueClient); } else { truebutton.setVisibility(View.GONE); } truebutton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { trueClient.getTruecallerUserProfile(auth.this); } }); } @Override protected void onResume() { mTruecallerRequestNonce = trueClient.generateRequestNonce(); super.onResume(); } @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { if(trueClient!=null && trueClient.onActivityResult(requestCode, resultCode, data)) { return; } super.onActivityResult(requestCode, resultCode, data); } @Override public void onSuccesProfileShared(@NonNull TrueProfile trueProfile) { Toast.makeText(auth.this, trueProfile.firstName + " " + trueProfile.lastName, Toast.LENGTH_LONG).show(); } @Override public void onFailureProfileShared(@NonNull TrueError trueError) { Log.e("error code", trueError.getErrorType() + " "); } } 