I have a simple UDP client program bound to a port which takes CallerID information from a UDP broadcast that is sent by hardware purchased by the app's user. While the application is in the foregound everything works fine, but when the application is in the background the UDP packets are held (not captured and handled - the application takes data from the UDP packet and HTTP POST it to a server defined by the application's user), anyway these UDP packets are held (not sent to server) until the app is brought back out of the background and put in the forground.
I want the application to listen in on the port, capture packet (capture CallerID), and then send data to the server(a server that the USER defined) via HTTP POST to their own server's web application, all while in the background.
HOW can I do this?
Thanks in advance.