0

I am looking for Pubnub alternatives in Codename One for real time communication. Are there available cn1libs for Pusher for example? If there is not one, is it possible to write a cn1lib using the existing Android and iOS libraries for Pusher?

Matthew O'Riordan
  • 7,981
  • 4
  • 45
  • 59
Hristo Vrigazov
  • 1,357
  • 2
  • 12
  • 20

2 Answers2

2

I really like pubnub and it has a pretty generous free tier but these sort of discussions are discouraged on stackoverflow so I'll answer the question of "Is it possible to write a cn1lib using the existing Android/iOS libraries of an SDK?"

Yes. We even have a tutorial on doing this in the developer guide here. Steve also made some videos covering the subject here.

Shai Almog
  • 51,749
  • 5
  • 35
  • 65
  • Shai, are there any plans to support any other library than pubnub now that the pubnub SDK would not be updated? I would suggest looking also into Fanout.io – 3lix Apr 21 '17 at 03:19
  • We don't have any such plans at this time. If I'd invest time in it I'd work on websockets rather than one of those tools. Notice you can wrap any native library with a Codename One cn1lib which is a pretty easy process for these types of libraries as they contain no UI. – Shai Almog Apr 21 '17 at 06:37
1

We have not explicitly tried our Ably realtime client libraries with Codename One, however they are built with portable Java and should therefore work. We are a very appealing alternative to PubNub and Pusher.

Matt, co-founder of Ably: simply better realtime

Matthew O'Riordan
  • 7,981
  • 4
  • 45
  • 59
  • Ably looks very interesting, especially the flexible pricing :) But in Codename One, jars are not guaranteed to work, since they may use some not supported Java features. I will try it as soon as possible though – Hristo Vrigazov Aug 09 '16 at 06:55