add_action('wp_footer', function () { echo ''; }, 99);
add_action('wp_footer', function () { echo ''; }, 99);
The post Emirates ID reader support All web browsers using Windows Service appeared first on Coding Sips.
]]>But this solution is based on Windows Service that’s why there is no limitation to use any specific browser, instead it will work on Google Chrome, Firefox, Safari, Opera, Internet Explorer, Microsoft Edge or any other browser or even desktop application running at that PC.
This Windows Service is not continuously scanning card in infinite loop, instead it will only scan card when it receives HTTP request, after getting HTTP request it will start scanning Emirates ID and put all the data in JSON string along with image as base64 string, and return as response to the requester.
There will be just 2 steps to configure it on any PC
1.1- Download Windows Service files
1.2- Open cmd as administrator to install Service
In below command Replace installUtil.exe path and the Windows Service paths as per your environment, and then run it
:: correct both paths
"C:\Windows\Microsoft.NET\Framework\v4.0.30319\installutil.exe" "c:\Alam EID Reader Service\AlamEidReader.exe"
:: run it
1.3- Go to Services using services.msc locate Alam Emirates ID Reader, Double click it and then click Start button
It will provide you a URL for example Http://localhost:8585/alameid
Calling that URL will initiate the Windows Service to start scanning Emirates ID and return the data as JSON string.
You can call it through ajax request from your web application or via HttpClient request from you desktop applications too.
2- Make HTTP request from website to this Windows Service
$(function(){
$('.btn-readCard').click(function(e){
e.preventDefault();
var rnd = Math.floor(Math.random() * 100000);
$.ajax({
url:'http://localhost:8585/alameid?rnd='+rnd,
beforeSend:function(){
$('.eid-wrapper').addClass('loading');
},success:function(resp){
try{
var json = JSON.parse(resp);
$('.eid-wrapper').removeClass('loading');
if( json.Error != "" ){
alert(json.Error);
}else{
$("#txt_EIDNumber").val(json.EIDNumber);
$("#txt_Name").val(json.Name);
$("#txt_NameAr").val(json.NameAr);
$("#txt_Phone").val(json.Phone);
$("#txt_Mobile").val(json.Mobile);
$("#txt_Email").val(json.Email);
$("#txt_Sex").val(json.Sex);
$("#txt_DOB").val(json.DOB);
$("#txt_ResidencyIssue").val(json.ResidencyIssue);
$("#txt_ResidencyExpiry").val(json.ResidencyExpiry);
$("#txt_NationalityID").val(json.NationalityID);
$("#txt_Nationality").val(json.Nationality);
$("#txt_NationalityArabic").val(json.NationalityArabic);
$("#txt_PassportNumber").val(json.PassportNumber);
$("#txt_ResidencyNumber").val(json.ResidencyNumber);
$("#txt_cardVersion").val(json.cardVersion);
$("#imgPhoto").attr('src','data:image/png;base64,'+json.Photo)
}
}catch(err){
$('.eid-wrapper').removeClass('loading');
alert("Error reading Emirates ID");
}
},error:function(){
$('.eid-wrapper').removeClass('loading');
alert("Error reading Emirates ID, Windows Service might not running.");
}
});
});
});
Currently there is no trail version available, but you can contact Alam at alampk.com or productsalampk.com or whatsapp at 0509187558 to get paid version of it.
Watch the Demo here
The post Emirates ID reader support All web browsers using Windows Service appeared first on Coding Sips.
]]>The post New Emirates ID card reading in chrome or windows app software appeared first on Coding Sips.
]]>
I have written a blog for how to read Emirates ID public data in Google Chrome browser via console app and chrome extension.
In October 2021 I received few complaints that some customers are having new version of Emirates ID that is not working.
So I completed my R&D on developing another version of this application to support both old and new Emirates ID cards.
But I noticed this new version of SDK can read less number of data fields.
Anyhow for my projects I have updated the Console application with new SDK, while remaining Chrome extension part is same as explained in my previous blog also explained in below steps.
1- Download required dlls and console app v2 and extract it.
2- You will need .net framework 4.7 32 bit installed to run above app
3- Go inside extracted folder and Double click install_host.bat file to create registry key.
4- Download chrome extension named ADCS EID Reader from Google chrome webstore.
3.2- For coding help open readme.html and see what code is there, you can update control ids and classes but I have the following
3.3- In you page the following html objects should be there
4- Insert card, read it and chill
The post New Emirates ID card reading in chrome or windows app software appeared first on Coding Sips.
]]>