The realtime web and websockets

bluedude

Well-Known Member
Licensed User
Longtime User
Hi,

There are fantastic new options available to do realtime connection with HTML5 client, solutions like: Beacon, Pusher and others.

However, most of these are for HTML5 and I don''t think it will work in a webview.

Has anyone taken a look at realtime sockets and was planning to wrap these in a library?

It would be a great benefit for everyone because realtime is the way to go for many apps. (it is very scalable and even Twitter uses it).

Basically it means you can send all your connected Android users a message at once.

Would be nice to connect these services by maybe using the network UDP stuff. I''m not looking for a new push server but more a client that connects to these services.

Cheers,
 

LMDEV

Member
Licensed User
Longtime User
I've bookmarked your message and will update as I move forward.

Side note, I too see real time and UDP as the key... I have done this with PCs but I am just getting into the new handhelds and pads as the new media.

Side side issue... need a "Good Luck!" sign....
 
Upvote 0

bluedude

Well-Known Member
Licensed User
Longtime User
I really think using a service like Pusher or Beacon would be great. Or even Google C2DM.

Right now for realtime mapping Pusher and the webview probably work so you can push realtime map updates to all connected Android client. Instead of polling it is possible to distribute map updates realtime. Great for sharing your location.
 
Upvote 0

shawny

Member
Licensed User
Longtime User
All well and good Erel, but what about those of us who already have applications out there in the world written? I don't want to have to modify 3 seperate systems to work with something else. I'd love to be able to work with Pusher still, even using Parse, I'd have to modify all my web code to work with android the libraries you do have created, thought the idea behind b4a is that we can wrap existing libraries and still use a friendly vb-like syntax to develop our droid apps? Would hate to have to switch to eclipse and learn native android just to use the realtime client I prefer.

Hoping someone a little more familiar with b4a was able to wrap this library for us. Assuming once library is wrapped it's also accessible to b4j as well?
 
Upvote 0

shawny

Member
Licensed User
Longtime User
Erel, thanks. I had someone help me wrap the Android_Pusher, apparently that library has been depreciated since Nov. However, we were able to get it to register and subscribe to the intended channel. Trying to use it more for realtime asynchronous communication of other apps I've written. Going to look into GCM later today and how far I might be able to take it, have used simple downloading of a url to initiate a call to my webscript that pushes out to systems via growl and the web based pusher monitor channels.

In the meantime, I think I found a newer official library released in Feb.. Also looks like it might be workable with both, it states: "The library has also joined the global Java ecosystem; releases are now published to Maven Central, where they are available to all without additional repositories in your builds."
 
Upvote 0
Top