Closed easycodersid closed 4 years ago
Hey Sid Try again, Now it's working.
Actually i am working on next version. in that you can add latest certificate in your asset folder and pass name as a parameter but in current version no need to add certificate, already add updated certificate in it.
Please Try and post issue if any.
Thanks
Hi Govind,
Thanks for the reply!
I was able to deploy the app, not able to get a response. I found the below stacktrace from the logcat.
java.util.zip.ZipException: Not in GZIP format
2020-03-04 14:00:59.928 21803-21803/com.example.docverification W/System.err: at java.util.zip.GZIPInputStream.readHeader(GZIPInputStream.java:166)
2020-03-04 14:00:59.928 21803-21803/com.example.docverification W/System.err: at java.util.zip.GZIPInputStream.
Are you sure , you scan secure qr code ? send me the step to reproduce this issue.
I am just executing this code.
final TextView textView = (TextView) findViewById(R.id.name);
AadhaarParser aadhaarParser=AadhaarParser.getInstance(this);
aadhaarParser.parse("678553320635", new OnAadhaarResponse() {
@Override
public void onAadhaarResponse(AadhaarUser aadhaarCard) {
textView.setText(aadhaarCard.getUid());
Toast.makeText(context, aadhaarCard.getName(), Toast.LENGTH_LONG).show();
// aadhaarCard is your user model object
/*Intent intent = new Intent(getApplicationContext(), ProfileActivity.class);
intent.putExtra("card", aadhaarCard);
startActivity(intent);*/
}
});
Once this gives some output is when I should follow Offline KYC step right?
Replace "678553320635" with your scanned secure qr code string, so in aadhaarCard object you received user details. you can use this details. If you pass incorrect qrcode string then above error will accrued.
Thanks for this issue. In next version will try to add onErrorResponse method for incorrect scanning.
Thanks
I am trying to use your reporsitory for my project and when I try to run the gradle after adding the dependency, it says -> ERROR: Failed to resolve: com.gpfreetech:aadhaarofflinekyc:1.1. Can you please let me know if there is any thing I am missing?
Also have downloaded the public certificate from UIDAI website and placed it under raw folder in my project