SSE not working for android phones from

hello ,

I am using this URL from Ajax “"
to get SSE in client side app using Cordova.
its working fine on IOS but its not working on android.
for same URL if I give IP like "
” its working fine on both IOS and android.

my code goes like this:

var eventSource = new EventSource(" +“url”+ /rest/events?topics=smarthome/*");

eventSource.addEventListener(‘message’, function (eventPayload)
//not entering here.

1 Like