HTML5 Mobile Chat Easily with jQuery

0 MIN READ • Mar 14, 2012

Waving Hand

Good News! We've launched an all new Chat Resource Center.

We recommend checking out our new Chat Resource Center, which includes overviews, tutorials, and design patterns for building and deploying mobile and web chat.

Take me to the Chat Resource Center →

Get started quickly with your mobile app development with jQuery Mobile and PubNub. In just 125 HTML+CSS+JavaScript lines of code, I wrote this mobile chat app in under an hour. It was so easy to take advantage of the UI Components of jQuery Mobile and bind them into the Publish and Subscribe PubNub APIs. All the code you need is available on our GitHub Repository. Want to see it in action?

Check out the live HTML5 mobile chat demo here:
HTML5 Mobile Chat Easily with jQuery

HTML5 Mobile Chat + jQuery

Only the basic jQuery functions were used to get this app into action such as bind(), click() and scrollTop(). Then we used the PubNub publish() and subscribe() functions to allow cross-phone communication. The rest was simple because PubNub provides a reliable mobile connection between iPhones/Android devices and jQuery take care of the UI joy.

You’ll first need to sign up for a PubNub account. Once you sign up, you can get your unique PubNub keys in the PubNub Developer Portal.

Collaboration
Jun 29, 2017

ALFREDO: Real-time Collaboration Powered By PubNub

ALFREDO, a real-time event and collaboration app, uses PubNub to ensure that every user has up-to-the-second updates.
Michael Carroll
Michael Carroll
Chat
Sep 13, 2012

Mobile and Web HTML5 Chat with Channel Presence

This blog post shows you how to build a HTML5 chat app for both web and mobile, that also includes a chat user buddy list using Presence.
Stephen Blum
Stephen Blum
Chat
May 17, 2013
This tutorial (broken into 4 parts) shows you how to build a fully-featured web and mobile group chat app with JavaScript.
Michael Carroll
Michael Carroll