Use of enketo form with ODK aggregate 1.4.4

618 views
Skip to first unread message

managingw...@gmail.com

unread,
Oct 31, 2014, 11:28:28 AM10/31/14
to enketo...@googlegroups.com
I'm trying to use enketo with a new installation of ODK aggregate 1.4.4

I've set everything up, including the enketo form integration, for an anonymous user to submit data.

On my android phone, using Chrome, I cannot submit a photo via my enketo webform, getting a message that "Media questions are not supported in this browser. Please use Chrome . . . " (however Chrome works to do this on my laptop). I see enketo forms are not described as having "robust support for media input."

I'm looking for a way to use both Android phones and iPhones (away from network coverage) as well as webforms to submit data including photos to our server, which is currently ODK aggregate on apps engine. Does anyone have a recommendation for a secure, robust, and open source path to do this?

many thanks

Peter Donovan
soilcarboncoalition.org


Martijn van de Rijdt

unread,
Oct 31, 2014, 12:08:49 PM10/31/14
to managingw...@gmail.com, enketo...@googlegroups.com
Hi Peter,

On iOS devices the only known option is to use the Puffin browser. My understanding is that Apple blocks the proper modern Chrome browser and that Chrome on iOS is nothing like Chrome on other OSes. (Not sure how Puffin managed to circumvent the limitation).

On Chrome on Android and desktops, the photo uploads should work quite well, but I would also not consider it completely robust (maybe others can share their experience with uploading photos). A new Enketo app is under development that uses less experimental cross-browser technologies to support file uploads in all modern browsers on all devices.

If you are having a problem on Chrome on non-iOS devices, you may have discovered a bug. In that case, please let me know how I can reproduce it.

Cheers,
Martijn

--
You received this message because you are subscribed to the Google Groups "enketo-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to enketo-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Did you know that Enketo Smart Paper has now become the #1 tool for data collection? Don't fall behind. Use it!

Enketo    |    LinkedIn    |    GitHub    |    Twitter

Martijn van de Rijdt

unread,
Oct 31, 2014, 12:45:46 PM10/31/14
to enketo...@googlegroups.com
Thanks for following up.

The first time you load the form it asks for permissions (geolocation and permanently storing large data on your device). I wonder if the issue is caused by declining the latter (in which case you'll see the message 'waiting for permissions' underneath the file input field(s)). To quickly check this could you open https://files.enketo.org/webform and make sure to reply Ok to the permission question? 

If this is not the cause, then I am not able to reproduce it on Android 4.4 with the latest Chrome (works fine for me). I suspect it is specific to an older version of Android in that case.

As a rule of thumb, to get the maximum feature support until the new Enketo app launches: use Chrome everywhere except on iOS devices (iPhone/iPad/iPod) where Puffin is the only option if file uploads are important.

Cheers,
Martijn

On Fri, Oct 31, 2014 at 10:27 AM, Peter Donovan <managingw...@gmail.com> wrote:
Hi Martin, thanks for the reply.

I am using Chrome on my Android phone, and getting the message relayed above that media questions are not supported. I tried Puffin on my Android phone, and it worked though it had trouble with my date field, no date picker showed up. As mentioned, Chrome worked on my laptop, but Firefox didn't. I wish there was a one size fits all solution here, other than buying android devices for everyone.

https://bcxsq.enketo.org/webform

feel free to enter junk data as it is in trial only.

I don't have an iPhone and would be interested if it works.

Also, I plan to require user authentication if I can get this working.


thanks for your work

Peter

managingw...@gmail.com

unread,
Oct 31, 2014, 1:57:50 PM10/31/14
to enketo...@googlegroups.com
Having trouble with date field with Puffin: on android phone, it is extremely difficult and clumsy to enter a date, and my iPhone tester did not succeed with it.

From my form:

<bind nodeset="/photopoint/date" required="true()" type="date" />

Is there a workaround for this?

Peter Donovan

unread,
Oct 31, 2014, 3:54:26 PM10/31/14
to Martijn van de Rijdt, enketo...@googlegroups.com
Hi Martijn

On my phone is android 4.1.2 and Chrome 26.0.1410.58.

With my phone using Chrome, I get Media questions not supported, still, with either your file upload test form or mine. I did not get a permission question.

My experience is that it is difficult to fill the form--which includes date, photo, gps--in Puffin on android, and from what my tester said, impossible on iPhone.




You received this message because you are subscribed to a topic in the Google Groups "enketo-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/enketo-users/cUiRr6duB-E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to enketo-users...@googlegroups.com.

Martijn van de Rijdt

unread,
Oct 31, 2014, 3:57:14 PM10/31/14
to enketo...@googlegroups.com
Hi Peter,

I see what you mean. For touchscreen devices, Enketo defers to the browser's built-in date pickers (see same form in safari e.g. that shows a nice datepicker widget). In most cases this provides the best experience, but I now see that Puffin has no date pickers built in yet so it's the exception. There is no workaround for this, I think. Sorry about that.

I should probably stop recommending Puffin and simply say that file inputs (the only reason to recommend using Puffin on iOS) are not supported iOS until Enketo's new app is ready or until Safari or Chrome starts supporting the required technologies on iOS.

Cheers,
Martijn

--
You received this message because you are subscribed to the Google Groups "enketo-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to enketo-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Martijn van de Rijdt

unread,
Oct 31, 2014, 4:05:20 PM10/31/14
to enketo...@googlegroups.com
Thanks Peter,

That browser version (the current version is 38 on Android 4.4) doesn't support the required technology (and is not a 'modern' browser supported by Enketo). So the information message is correct and helpful, and you won't be asked the permission question. Sorry about that. 

If there is no later version of Chrome available on your version of Android, your only two possible options would be to upgrade the OS (which I presume is not an option for your device / provider), or try Opera.

Cheers,
Martijn

fusal drr

unread,
Mar 24, 2015, 6:48:27 PM3/24/15
to enketo...@googlegroups.com
Hi all,
I installed puffin on my iphone in order to load images to an enketo web form and transger the data to ona. I am new to puffin.  I am able to upload photos and transfer while online. but i can't do the sane offline in airplane mode.  I receive the error message,   use wifi to access data, / reconnect to server / no network service, reconnecting.  I  fiddled with save to pocket but that didn't work either.  Has anyone used enketo on puffin in offline mode?  is there a setting i need to change to make this work (couldn't find anything on skim of puffin help.)

Thanks for any assistance.

Robin

Martijn van de Rijdt

unread,
Mar 24, 2015, 7:03:08 PM3/24/15
to enketo...@googlegroups.com
Hi Robin,

Nothing should have changed on the enketo.org side. But it's possible that Puffin dropped supported, because the technology used is now abandoned by the web standards community. I'll check tomorrow.

The new Enketo app has proper cross-browser support for media inputs. For now you'd have to install it yourself though: https://github.com/kobotoolbox/enketo-express. Read more here.

Cheers,
Martijn



--
You received this message because you are subscribed to the Google Groups "enketo-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to enketo-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


-- 
Revolutionizing data collection since 2012.

Enketo    |    LinkedIn    |    GitHub    |    Twitter    |    Blog

martijn

unread,
Mar 25, 2015, 11:03:34 AM3/25/15
to enketo...@googlegroups.com
thread on airplane mode and Puffin continued here: https://groups.google.com/forum/#!topic/enketo-users/xZotldosYAE


On Tuesday, March 24, 2015 at 5:03:08 PM UTC-6, martijn wrote:
Hi Robin,

Nothing should have changed on the enketo.org side. But it's possible that Puffin dropped supported, because the technology used is now abandoned by the web standards community. I'll check tomorrow.

The new Enketo app has proper cross-browser support for media inputs. For now you'd have to install it yourself though: https://github.com/kobotoolbox/enketo-express. Read more here.

Cheers,
Martijn


On Tue, Mar 24, 2015 at 4:48 PM, fusal drr <fusa...@gmail.com> wrote:
Hi all,
I installed puffin on my iphone in order to load images to an enketo web form and transger the data to ona. I am new to puffin.  I am able to upload photos and transfer while online. but i can't do the sane offline in airplane mode.  I receive the error message,   use wifi to access data, / reconnect to server / no network service, reconnecting.  I  fiddled with save to pocket but that didn't work either.  Has anyone used enketo on puffin in offline mode?  is there a setting i need to change to make this work (couldn't find anything on skim of puffin help.)

Thanks for any assistance.

Robin

--
You received this message because you are subscribed to the Google Groups "enketo-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to enketo-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

-- 
Revolutionizing data collection since 2012.

Enketo    |    LinkedIn    |    GitHub    |    Twitter    |    Blog

americar...@gmail.com

unread,
Mar 26, 2015, 12:56:17 PM3/26/15
to enketo...@googlegroups.com
thanks Martijn! I am using ona so i am wondering the timing of rollout to ona vs. kobo vs.own instance and integration with crm? Ah. the choices. Thankful we have them and thank you for what you are doing.  What is the view on cached maps / offline maps?  Dancing around those issues too... thank you again.-robin

On Wednesday, March 25, 2015 at 11:03:34 AM UTC-4, martijn wrote:
thread on airplane mode and Puffin continued here: https://groups.google.com/forum/#!topic/enketo-users/xZotldosYAE


On Tuesday, March 24, 2015 at 5:03:08 PM UTC-6, martijn wrote:
Hi Robin,

Nothing should have changed on the enketo.org side. But it's possible that Puffin dropped supported, because the technology used is now abandoned by the web standards community. I'll check tomorrow.

The new Enketo app has proper cross-browser support for media inputs. For now you'd have to install it yourself though: https://github.com/kobotoolbox/enketo-express. Read more here.

Cheers,
Martijn


On Tue, Mar 24, 2015 at 4:48 PM, fusal drr <fusa...@gmail.com> wrote:
Hi all,
I installed puffin on my iphone in order to load images to an enketo web form and transger the data to ona. I am new to puffin.  I am able to upload photos and transfer while online. but i can't do the sane offline in airplane mode.  I receive the error message,   use wifi to access data, / reconnect to server / no network service, reconnecting.  I  fiddled with save to pocket but that didn't work either.  Has anyone used enketo on puffin in offline mode?  is there a setting i need to change to make this work (couldn't find anything on skim of puffin help.)

Thanks for any assistance.

Robin

--
You received this message because you are subscribed to the Google Groups "enketo-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to enketo-users...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

-- 
Revolutionizing data collection since 2012.

Enketo    |    LinkedIn    |    GitHub    |    Twitter    |    Blog

Martijn van de Rijdt

unread,
Mar 26, 2015, 1:49:11 PM3/26/15
to enketo...@googlegroups.com
Thanks Robin,

I would recommend just asking in the Ona forum if they have plans to roll out Enketo Express. A hosted solution is almost always going to be cheaper and probably more reliable, so unless you have very specific requirements, I'd go for that. KoBo is planning to switch to Enketo Express.

Cached/offline maps would be awesome but this is quite complex and expensive. I don't expect this to happen soon unless somebody else takes this on. There is a company that was planning to implement this for enketo-legacy (I forgot the name). I don't know about the status of this. See https://github.com/enketo/enketo-core/issues/231.

Cheers,
Martijn

Martijn van de Rijdt

unread,
Mar 26, 2015, 1:51:05 PM3/26/15
to enketo...@googlegroups.com
Update: Ona just announced they're rolling out Enketo Express soon: https://groups.google.com/forum/#!topic/ona-community/QnVFAMSbJj0

fusal drr

unread,
Apr 3, 2015, 9:34:09 AM4/3/15
to enketo...@googlegroups.com
Hi Martijn,

Regarding trying to load data from iOS to Ona with the old version of enketo, we have 40 records that won't transfer to Ona. I think they could be stuck by one entry that has photo. How can I get into chrome to edit or delete the record that is blocking the rest? Is there a way to pull the records off the iPhone if they won't pass so we don't loose the data?

Thank you !

-robin

Martijn van de Rijdt

unread,
Apr 3, 2015, 10:48:52 AM4/3/15
to enketo...@googlegroups.com
Hi Robin,

Sorry to hear that.

You can export data in the old Enketo app in the sidebar. Not sure where iOS will put that file. Unfortunately, the import feature was never developed, but at least you have a copy of your data.

It's too bad I can't look into your browser. Records with a failed photo retrieval are designed to still be sent. I would be curious to see what is blocking. Is there an error message shown in the queue after a failed submission? You can click a red border to see the latest error message. If you open the Console in the Web Inspector (see below) you may see an error in red.

The instructions below are for a desktop. If you are using Safari on iOS, you can get access to the Web Inspector by connecting your device to your desktop/laptop in developer mode. The instructions are here: https://developer.apple.com/library/mac/documentation/AppleApplications/Conceptual/Safari_Developer_Guide/GettingStarted/GettingStarted.html

Once you have access to the Web Inspector, removing a record is (too) easy. To remove a record from the queue, forever, in the old Enketo app you can go into the Web Inspector -> Resources -> Local Storage and identify a record by name.

See screenshot below, where I highlighted a queued record called 'two'. In Safari you simply hit the delete button on your keyboard to remove this record. When you restart the page, you'll see the record is gone.

Needless to say this stuff is all quite risky. I hope it helps.

Cheers,
Martijn

--
You received this message because you are subscribed to the Google Groups "enketo-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to enketo-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Robin Bram

unread,
Apr 3, 2015, 3:10:00 PM4/3/15
to enketo...@googlegroups.com
Oddly, in our original survey, we could attach a photo in chrome when the question was part of a begin repeat group.

I believe i can simulate the problem.  I create one record with photo and 30 others without a photo and then another with a photo.  The ones without a photo are being blocked by last record in with a photo.  
The error messages are as follows:  The ones without a photo and that could pass have a red box around them with Failed (offline?) message.  The ones with the photo have white box around it and do not show any error messages.  They look like they are just being ignored, but taking device offline?

The user is in myanmar and only has iphone.  I am trying to come up with process here in CT that will enable her to fix herself.  
Best course right now seems to be to find an iphone app that enables you to see your own files on your iphone (chrome data?) and have here attach files in an email to me.

At the same time, i wanted to at least see if i could find files on my iphone but only working with iphone and android today.  I have a work PC but can't download web inspector/safari, itunes or iexplorer , since i don't have rights to install apps.  I am sooooo frustrated by IOS ...  Thanks for reading my saga... i understand not an enketo express issue ... so if you can quickly think of anything that would help, much appreciated.  otherwise , i am sure i will eventually figure it out.

-robin

Martijn van de Rijdt

unread,
Apr 6, 2015, 1:03:28 PM4/6/15
to enketo...@googlegroups.com
Hi Robin,

Thanks for getting back. Sorry, I must have moved too much into Enketo Express mode, because my earlier reply to you didn't make much sense. The old enketo app (the one you're now using on Ona.io) doesn't support file uploads in iOS browsers except on Puffin (but this browser may not work offline - and I cannot fix any Puffin-specific issues unfortunately).

The photo/audio/video inputs should be automatically disabled on any browser that doesn't support it which should avoid the issue she is experiencing. What browser is she using?

Cheers,
Martijn

Robin Bram

unread,
Apr 14, 2015, 4:16:26 PM4/14/15
to enketo...@googlegroups.com
never figured this out. 
The browser is Chrome - and the files are stuck in chrome in a queue associated with the enketo offline form.
At this point, i just want her to find the files on her phone and email them to me so i can then upload them here (through ona new uploader or briefcase)
Of course, i never found a tool to enable seeing the files on ios...... Still being asked to do this and getting back on it... . suggestions?  
And your wording is wonderful... its mine that is not the greatest!
-robin

fusal drr

unread,
Apr 16, 2015, 4:37:56 PM4/16/15
to enketo...@googlegroups.com
Hi Martijn,


The problem is finally resolved!

Perhaps of use to someone else ... (but hope not needed) , below are instructions on where to find the survey forms on ios:


2.      Install iFunbox onto your laptop/desktop computer.  There are versions for the mac or windows operating system.

a.      http://i-funbox.com/

3.      Connect your iphone to your laptop/deesktop via charger cable.

4.      Open/launch the ifunbox software on your laptop/desktop

5.      Click on the managing app data tab

6.      See My Favorites, iTunes File Sharing and All My Apps sections

7.      Click on Click to Show all under All My Apps

8.      Click on this weird combo – first chrome with two icons   and then Chrome with one icon.  the chrome with one icon is where you will dig into folder structure to find the data. 

9.      Within chrome, you will see documents, library, storekit and tmp.

10.   Click on Library > Caches > Google >  Chrome > Default > LocalStorage.

11.   Within LocalStorage, you will see saved enketo forms and data.  Single click on your form/highlight: https_hof2i.enketo.org_0.localstorage  (see image below for visual)

12.   See top menu and click on Copy To PC

13.  Copy the file from your PC into the folder: AppData > Local > Google > Chrome > User Data > Profile 1 > Local Storage and then open the form in chrome and transfer the data. 


Yeah!!

martijn

unread,
Apr 16, 2015, 4:55:04 PM4/16/15
to enketo...@googlegroups.com
Wow. That's pretty amazing. :) Thanks for following up!

It's still a bit of a mystery what caused it, but if it was caused by photo uploads, it should resolve itself once the old Enketo app dies out.
Reply all
Reply to author
Forward
0 new messages