anupmishra20 / opendatakit

Automatically exported from code.google.com/p/opendatakit
0 stars 0 forks source link

Send IMEI in headers with all communication #175

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
As the number of enumerators grows, managing them across different surveys and 
groups could be helped/automated if we could uniquely identify each enumerator. 
We could automatically control which surveys an enumerator can download, 
administer and submit. We could also automatically track enumerator performance.

The easiest way seems to be to send the IMEI of the handset along with the 
headers for all communications that ODK has with the backend - requesting 
forms, as well as submitting data.

Original issue reported on code.google.com by l...@applab.org on 21 Jan 2011 at 10:08

GoogleCodeExporter commented 9 years ago
I support this proposal.

I'm involved in a project which will involve a number of volunteers capturing 
data and it will be imporant during quality control of the data to identify 
whether some people ar consistently making certain types of error.

Kirby 

Original comment by kirby.ja...@gmail.com on 21 Feb 2011 at 2:02

GoogleCodeExporter commented 9 years ago
much of this will be covered in the openrosa metadata schema. 

https://bitbucket.org/javarosa/javarosa/wiki/OpenRosaMetaDataSchema

Original comment by yanokwa on 28 Feb 2011 at 3:07

GoogleCodeExporter commented 9 years ago
adding Collect label.  Not sure if there is a preload function to write for 
Collect to accomplish populating data for OpenRosa's metadata fields?

Original comment by mitchellsundt@gmail.com on 1 Jul 2011 at 8:28

GoogleCodeExporter commented 9 years ago
There is a "deviceid" property (and any capitalizations work) defined that will 
return:
(1) the IMEI if available, or
(2) the WiFi MAC address if available, or
(3) the Android ID

<bind id="hidden1" nodeset="/imci/Meta/DeviceID" type="xsd:string" 
      jr:preload="property" jr:preloadParams="DeviceID" />

Original comment by mitchellsundt@gmail.com on 28 Jun 2012 at 11:21

GoogleCodeExporter commented 9 years ago
To better conform with OpenRosa, I've added:

jr:deviceID  -- prefixes imei:, android_id: or mac:
jr:subscriberID -- prefixes imsi:
jr:simserial -- prefixes simserial:
jr:phonenumber -- prefixes tel:   (note, if you don't have a sim card, this may 
still have a value).
jr:username -- prefixes username: to the username as configured in ODK Collect 
settings
jr:email -- prefixes mailto: to the Google Account (email) as configured in ODK 
Collect settings

Original comment by mitchellsundt@gmail.com on 30 Jun 2012 at 1:42

GoogleCodeExporter commented 9 years ago
Update: I've changed jr: to uri: to be more generic. "uri:" means it will 
prefix the parameter value with the uri of that value, per above.

Creating separate documentation issue to track documentation.

Original comment by mitchellsundt@gmail.com on 12 Jul 2012 at 6:57