Thursday, February 15, 2018

Laravel Pusher Events Subscribed by Android - development

Laravel Pusher Events Subscribed by Android

Am trying to subscribe laravel events with android but i cant get the hang of it. I can see it is subscribing but the event is not showing up on android.
So should it be like

channel.bind("MyEvent", new SubscriptionEventListener() {
        @Override
        public void onEvent(String channelName, String eventName, final String data) {
            Log.e("data::", data);
        }
    });

or

channel.bind("AppEventsMyEvent", new SubscriptionEventListener() {
        @Override
        public void onEvent(String channelName, String eventName, final String data) {
            Log.e("data::", data);
        }
    });

I have triend all but none seem to be working.



from Laravel Questions and Answers https://laravelquestions.com/laravel/laravel-pusher-events-subscribed-by-android/
via Lzo Media

No comments:

Post a Comment