In September 2015, I made a Ionic Framework presentation at a laTechamienoise event. I think it is time to explain here how the app is working :
At first we need data : the tweets are extracted from laTechamienoise timeline. To grab such data I had to set up a twitter proxy php script and a Twitter app. Since I don't want my Twitter API credentials to be bundled in my app, I add to fill them in my script and to deny browsing (via .htaccess). The script is outputing data in JSON; this feed is parsed by my application and rendered via a classic collection-repeat directive in my Ionic app.
These scripts store content on a specific http adress, which respond to my app request. The tweets page is refreshed via a ionicloading directive (really nice).
App settings are persistent while the app is installed, thanks to localstorage.
I can track the app usage via an embedded google analytics tracking code (Google Play only tracks install/uninstall/updates/OS versions....) on each page.
Here is the components used in this app :
- cordova 6.0
- ionicframework 1.2.4
- angularjs 1.4.3
- x2js 1.2.0
- ngCordova (for localstorage)
The code for this app is on my Github repo, here : https://github.com/lennycartier/ionic-ltanews
What will be improved : agenda feed
What could be improved : app size, I can reduce it by hand but a nice gulp.js would be more efficient