Hi Shai, I used below code to receive the message, but it didn't come. Do I need to execute this subscribe somewhere like original PubNub needs to execute after subscribe.
public void subMessage() { Pubnub pubnub = new Pubnub(publishKey, subscribeKey); try { String channel = "testChannel"; pubnub.subscribe(channel, new Callback() { @Override public void successCallback(String channel, Object message, String timetoken) { System.out.println("Message is comming!!!!!!!!!!!!!!!!!!"+timetoken); } }); }catch(PubnubException err) { Log.e(err); Dialog.show("Error", "There was a communication error: " + err, "OK", null); } } On Monday, April 8, 2019 at 4:00:37 AM UTC+2, Shai Almog wrote: > > This used to work fine. Make sure you included all the dependencies as > pubnub included other dependencies. Also make sure you installed the > library correctly. > -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/69a77c80-b55e-4cd1-8b0f-88e3b36e8948%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.