PubNub
didn’t update us on the status so we just didn’t notice this until now. That’s probably a good sign of us being too busy. There is now official PubNub integration for Codename One, which means you can get push like fast 2 way communications between devices without writing too much code.
How does it work?
PubNub has CDN like operations around the world, this means they can keep a high performance channel to your devices and send peer to peer or server/peer messages REALLY fast.
How is this different from just using Push notification?
These aren’t separate ideas, push is generally good if the application isn’t running. Its also good for very small messages and provides no delivery guarantees. So using push for a chat application might not be the right thing but using PubNub for that makes perfect sense.
There is now a
Codename One SDK from PubNub
and
a tutorial
related to the SDK that should help you get started right away and even a
quick start tutorial
. Normally we write a tutorial for things such as these but the guys at PubNub did such a good job at making this really simple, there is really no need to do so. Check out their work and let us know what you think.
Notice: This post was automatically converted using a script from an older blogging system. Some elements might not have come out as intended…. If that is the case please let us know via the comments section below.
8 Comments
Just spent a day looking at this finally, its kind of tough to get started for the first couple of hours but after that its plain sailing, made a whatsapp clone in 7 hrs that runs on all mobiles, thanks to codenameone 😀 Im amazed pubnub have put together such a decent and problem free API and extremely bloody thankful.
Please someone help me out,I don’t know where to start in pubnub
Did you go thru the tutorial on their website?
I did but not understanding anything there.
This [http://www.pubnub.com/docs/…](http://www.pubnub.com/docs/java/codenameone/tutorial/quick-start.html) seems really simple. Do you have any Java programming experience?
Helo Gareth,am jude.Am trying to create a mobile chat application for my project.I want to create something similar to whatsap and skype for android,but am not sure how to go about this.Please can you give me tips on how to do this project.Thanks in advance
Pubnub is deprecating 3.x version, and 4.x is the recommended now. Any plan to upgrade corresponding cn1lib?
We didn’t build that cn1lib. It was built by pubnub. I think there are no technical issues in porting it to the new API as Codename One supports sockets/websockets and allows any form of communication including native interfaces.
However, I don’t think they see enough paying user engagement from Codename One so if you rely on their service you need to write to them and ask for this.
On our side we’d like to offer a better webservice oriented tool that will work with websockets for efficient universal communications. There is no current ETA for this though as this is still on the drawing board.