Hello,
I have a service that keeps a TCP connection to my server open.
I was told by Erel I should make the service running on the foregound by using "Service.StartForeground". This methods needs an Id and a Notification object. But what Notification is needed ?
Does anyone have an example ?
Or is there another way to make sure the TCP connection stays open ?
Thank you
I have a service that keeps a TCP connection to my server open.
I was told by Erel I should make the service running on the foregound by using "Service.StartForeground". This methods needs an Id and a Notification object. But what Notification is needed ?
Does anyone have an example ?
Or is there another way to make sure the TCP connection stays open ?
Thank you