Skip to content
Omar Mallat edited this page Oct 31, 2018 · 4 revisions

How to read Emirates ID data from web application, using JavaScript, Chrome extension, and desktop application?

So, as you see in the picture:

  1. user click on the button in the web page that raises an event
  2. content_script will listen to this event and send message to background process
  3. background process will receive the message and ask chrome to run ae.eid.chrome
  4. chrome will identify the application, and open ae.eid.chrome.json
  5. chrome will check whether the caller is allowed or not
  6. if allowed, chrome will the run the exe listed in the path attribute.
  7. exe will run, read Emirates ID, copy the data to the clipboard and close.
  8. background process will see that exe finish, read the clipboard and send it as a message to content_script
  9. content_script will parse the JSON message, and push the data properly into the fields of the web page.

Clone this wiki locally