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() {
                public void successCallback(String channel, Object message, 
String timetoken) {

                    System.out.println("Message is 

        }catch(PubnubException 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 
For more options, visit https://groups.google.com/d/optout.

Reply via email to