I have an issue with my iOS app, written on Swift 3 with Xcode.
I'm using WiFi Socket server Communication in my app to communicate with a Raspberry Pi via WiFi protocol, and UserNotification in Xcode to receive these notification sent from RPi.
The problem is when I leave the application's window and go out to home screen, it seems my app stop to listening and when my RPi send the nothifications, there is no notification recived on my iPhone.
When I test my application with Xcode simulator, it works well, on applications's window or out there on home screen,
But when I test it on my iPhone device, it receive the notifications only when I rest on application's window, and stop working when I push the home's button on my iPhone to being on the home screen, or any where outside of application's windows.
Maybe someone Know a solution,
Thanks in advance,