Comments (2)
Here's my proposal....
A form designer specifies an SMS prefix (essentially a form ID), delimiter (defaults to space) and SMS number in the XLSForm. The designer also optionally specifies a short name (also known as a tag) for each question whose answer will be sent via SMS. This short name would be a new column in the XLSForm.
For example, the designer could have a form (prefix: F123
, number: 555-5555
) that asks for name (tag: +N
), gender (tag: +G
), and age (tag: +A
). Enumerators fill this out like any other form in ODK Collect.
When the enumerator finalizes the form, Collect splits the finalized form into chunks of 160 characters. When the enumerator hits send, Collect sends every chunk over SMS to 555-5555. Once Collect is sure all the SMSs are sent, it marks the form as sent via SMS.
https://developer.android.com/reference/android/telephony/SmsManager.html suggests we can split, send the message, and wait for the message sent intent to fire. I propose we wait for 5 minutes for the sending (inspired by Android’s messaging app https://android.googlesource.com/platform/packages/apps/Messaging/+/master/src/com/android/messaging/util/BugleGservicesKeys.java#69) and say the sending has failed.
The submissions will look like this.
F123 +N JOHN DOE +G M +A 35
F123 +N JANE SMITH +G F +A 26
Note that the data will not go to Aggregate! Instead, they will go to an SMS endpoint (perhaps set up via TextIt) to receive that data. And from there, users can do whatever they want with that data (perhaps send it to Google Sheets via Zapier).
I propose we add a new Server type for SMS only campaigns. You can set a device specific number in this setting which can be overridden in your form (same as Aggregate server URL). Also we can add a “Get Forms From” option (choose from Aggregate or Google or other) for folks to fetch their form. Note that this Server type will only allow submissions of forms that specify an SMS prefix.
With this proposal, an enumerator can switch between sending over SMS and data by changing the server type in the settings (if that isn’t locked down by an administrator
from roadmap.
Available in Collect v1.16.0.
from roadmap.
Related Issues (20)
- Tool maintenance:
- Remove ODK Validate and have pyxform call javarosa directly.
- ODK Aggregate to Central migration strategy HOT 2
- social media evangelist
- Code contributor strategy HOT 1
- External funding strategy (for code, docs, ...) HOT 1
- Docs contributor strategy
- refactor Collect (low priority, no immediate user benefit) HOT 1
- Pushing arbitrary messages to all devices
- Briefcase Database: https://docs.google.com/document/d/1blKmhqSPHytct81uQLclYHprZjQMgp-bUpvvt6Qu13k/edit
- Aggregate: Data consistency checks HOT 1
- Collect: Non linear travel through form
- JavaRosa: Add full XPath support
- Collect: Form linking (e.g. Q5 of Form A goes to Q2 of Form B)
- Collect: Refer to data in previous versions of forms HOT 1
- Collect: Refer to data in another form HOT 1
- Create automatic background recording of interview HOT 2
- Add native audio recording for audio type questions HOT 1
- Ability to audit, edit, delete submissions HOT 2
- Collect: User profiles (app look/feel, all settings) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from roadmap.