Am newbie to xamarin.android currently i have a requirement where i have to keep receving messages from a third party server via wss protocol. So, am running a background service where i have scheduled a job for every twelve seconds, am connecting to third party server and receiving messages via wss protocol. But, am unable to process that message within application. The method does not return if i try to return a string message. I have tried registering an explicit broadcast receiver to process the message. But, its unreliable sometimes it overrides onReceive where as most of the times it does not even override. Please suggest some solution. Following is the code
Action myAction = async () =>
Am calling this method within OnStartCommand, ReadNotification server method reads the message from WSS protocol. But, not able to register receiver. I can provide further elaboration.