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 on my iPhone to see.
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 home's button to being on home screen, or any where outside of application windows.
Maybe someone Know a solution, Thanks in advance,