BadrIT continues its contribution to the open source community with the publish of Base64, FileOperations and BackgroundJS plugins on the official PhoneGap Build plugins repository.

BadrIT continues its contribution to the open source community with the publish of MacAddress plugin on the official PhoneGap Build plugins repository.

MacAddress is a plugin used to retrieve native MacAddress for Android/iOS devices.

 

Why offline-storage.js?

January 30th 2014, 5:14 amCategory: Web 0 comments

Historically, cookies were invented early to be used as presistent local storage of small amounts of data but they have several downsides:

  • cookies are sent in each http request which slowing web aplication (in case you have to store data that are not related to sessions)
  • cookies are limited about 4KB of data

So offline storage (localStorage/sessionStorage) is one of the areas which gives native client applications advantages over the web, so it will be very useful to use instead of cookies because of:

  • a lot of storage space ~5MB compared to cookies
  • not transimitted to the server

But it has one downside which is allowing only string value to be saved, from here comes the importance of offline-storage.js to allow application to save objects into offline storage. The idea is simple rather than saving string it converts your object to a json string then saves it, when loading this string it parses this json string back to your original object, more info can be find on its github repo.

Printing to network printer, using Google Cloud Printing or Apple AirPrint, is now made easy using PrintPlugin that was developed by BadrIT published on the official PhoneGap Build plugins repository.

BadrIT continues its contribution to the open source community with the publish of EmailComposer plugin on the official PhoneGap Build plugins repository.