Cordova and Session Cookies

As of Cordova 5.2.0 on Android 5.1 cookies are working.
I will be investigating other platforms, like iOS, soon.

I’ve talked many times about my love of Cordova. I like how I can use my existing knowledge and code to build a mobile application with additional abilities than a web application. While I know how to a write native Android application, I still prefer to do my initial prototyping and launch in Cordova.

I honestly like everything about Cordova aside from the fact that you can’t use cookie based sessions.

In this post I will show you how to do so in Express 4 using jQuery AJAX calls and some simple code.

Continue reading

Theme PhoneGap and Cordova for Android Lolipop

Style Cordova like Android Lolipop

I have posted about theming Cordova / PhoneGap to look like native Android before but at the time Android Lolipop and the Material design were not out.

Since then the world of Android has changed a lot. Google has created a new UI design which developers are using to design their applications. It’s nice looking, elegant, and simple.

But I’m not a great mobile developer. I can make Android do pretty much whatever I want, but it takes me substantially longer to write an Android application than it does for me to write a web application. Because of that I like to rapidly prototype my applications in Cordova first and sometimes keep them in Cordova because of the ability to have one codebase that covers multiple platforms.

But web applications always tend to look like web applications and not native.

That is what Materialize is trying to change, and doing a damn good job at.

Continue reading

Socket.IO Driven, Mongoose like Models with Marilyn

Marilyn, Socket.IO Driven, Mongoose like Models

Recently, I have been working a lot with WebSockets, specifically with Socket.IO. As a former ActionScript developer I love being able to return to using events to send and receive data as well as having my application get real time updates from the server. It feels so natural and fits really well into the types of applications I like to build. However, I wanted some more organization. I wanted a library that was designed around CRUD and WebSockets. Something like Mongoose, but on the frontend. I looked all around GitHub and found some libraries that were close, but nothing that was perfect, so I decided to make one myself.

Continue reading

Theme PhoneGap and Cordova for Android

Cordova is a great platform for building native feeling mobile applications on Android and iOS with web technology like HTML, CSS,
and JavaScript. But what about the getting the native look out of these applications?

Obviously you have to use or write a CSS library which include all the UI components from the Android system and styles the appropriately.

Luckily developers have already created these types of frameworks and today I’m going to explore two of them for making web and Cordova applications look like native Android applications.

Continue reading