At #idf2014, Presenting how we used the Intel XDK to create the mobile app for Smartnotify.us.
The app is available in French and English and I've included some tips and tricks about internationalization and what you should worry about when deploying your app.
We use moment.js and i18n.js in the background.
Let's #hackcommunications
1 of 17
Download to read offline
More Related Content
Can your App parle Francais?
1. Can your app parle Francais?
Internationalization with the Intel XDK
3. Developers need to integrate¡
And hope they scale and stay compliant
And worry about multiple data warehouse
And worry about updating the API calls
And create reports that span all channels
And find time to build some automation
And how about some Algo for Sales + Marketing?
4. Simplify your life in 3 lines of code
var ft = new FileTransfer();
SmartNotify API
Ringo @smartnotify
John
Paul
Georges
Joan
!
var upload_options; //your message, your recipient list
!
ft.upload(imageLocation, "smartmedia.asmx/UploadMediaMessages", SaveMessageSuccess, SaveMessageFail, upload_options);
7. Our Setup
XDK i18.js Moment.js Local Cache
Code + Test Language Files Date format User Preferences
+ Simple to Setup + Simplest to Setup + Simple
- No real-time update - Device pref. vs. User Pref
- Potential security risk for
compliance app (not ours)
@smartnotify
9. Calling i18 & moment
@smartnotify
navigator.globalization.getLocaleName(¡)
deviceLanguage = locale.value; // get the device locale language
loadBundles(language, ¡®Application'); //load the proper language files (i18+moment)
!
//How we call moment.js
//Yes we could abstract the date format as well.
if (language==='en'){
//mm/dd/yy setup
dtTheDate = moment($(TheDateFromService).lang(language).format('MMMM Do YYYY¡¯);
}
11. Testing GeoLocation
@smartnotify
? Simulate Movement
? Simulate entering a Zone
? (next step) Testing with GPX (route)
Lessons learnt!
? No need to record every point!
? Code to the lowest common phone denominator