Daily Wallet up in Firefox OS Marketplace !

Some four months after its start, our app Daily wallet is up in the market place.  Basically, the app is an effective wallet management tool for school and college students. The user can enter all his income and how its gone through the interface, and details of all the transactions including date and time will be stored and retrieved at ease.  Tina and  I was working on the same for the Firefox OS App Days at Kochi, but couldn’t complete the same.

Marketplace link:  https://marketplace.firefox.com/app/dailywallet/

Some of the issues we faced and how it got fixed :

    1. Storing the history of transactions even after the phone is rebooted – had been a major issue as local file storage would require additional permissions and reading the data is again and issue – Used HTML5 browser localStorage.  Now data can be added and retrieved simply by using localStorage.history. Read about localStorage here.
  1. Getting the clicked id, so that it can be stored for further use – For eg, when the user spends 40 Rs for Breakfast, we wanted the app to store it like : (–Rs 40 – breakfast) in localStorage.history. After going through various JS concepts, we got into the idea of a button that throws its id on click.
    button id=”foo” onclick=”reply_click(this.id)”>button_name</button>
    Now it can be handled anywhere in the JS file to respond correctly to the clicks.
  2. Initializing the localStorage.balance variable – The localStorage.balance holds the Wallet balance and  it is altered throughout the app arithmetically. But, initially there should be a code that resets it to 0, in order for further +/- to result in values. The worry was where  to define this statement. Atlast, we made a separate button called ‘Reset’ that would reset the localStorage.balance, and needs to be given at the initial use of the app. Its a one time work, so no worry !
  3. Optimizing the code for the Firefox OS Marketplace- The  menus were redesigned to use JQuery accordion, and inputs are recieved via JS prompts. Pushing into the marketplace requires packing of the app and styling coding conventions. Was not a big issue at all.

Specifications :
O/S – Firefox OS
Language used : HTML, JS, JQuery, CSS, HTML5
Storage : HTML5 LocalStorage
Github link : https://github.com/tonythomas01/DailyWallet

Advertisements

How we conducted The Mini App Days @Amritapuri – Part 01

For a start, let me warn this is not from a developer point of view, but just ignore if I go too technical somewhere, as that happens.

The FOSS@Amrita, or our FOSS Club conducted The Mini App Days @Amritapuri, basically a technical workshop, which involves registered attendees hanging around to build apps for the newly out geek OS – The Firefox OS. The Browser technology gecko, along with B2G runs simply coded HTML files along with little JScript to add to the calculations and JQUERY, HTML5 and other technologies to style them up. The Amrita event that we hosted had almost 15 outside participants and a 35 of Amrita students itself and 3 Mozilla Reps coming in order to color thing up ! namely Naresh, Mithun and Saurabh. Detailed reports of the event is successfully hosted here 🙂

Coming to the organization point of view, it was of-course a fresh experience for our organization team to conduct such an event, as basically we were new to conducting anything in our college, and since it’s Amrita, we have to run around a lot to get a lot of permission letters signed, and again we were in our Second Year only and we got discrete and Integral Maths :\. When I mention permission letters, I would like to mention that at one time, we had about 9 pending letters in our hand, which were all required to reach their destinations within an hour.

For the Pre-App days on 28 September, we needn’t had to worry much, expect for some lab booking problems, which arose due to one international event which got scheduled on the same day, save us! The Main day event was really an experience. Since our mentor in charge got ill, our sole hope was on our CIR head, Br. Bijukumar, who guided us throughout  the event. It was the first time, I understood, how much hurdles I need to pass even to arrange one time coffee for all the participants. We got the posters printed out somehow for free and pasting it throughout the college was lot fun, specially with my friends Bhagya, Amrutha and Pooja, selecting sensitive areas (mess, water coolers) and pasting stuff!

Continue reading