I'm new to IOS development and recently I'm designing an app that can be remote controlled by another user via wifi.
I'm thinking of implementing it like a "chat app", like when it receive a message like "stop the current music" it'll do so. But what if the app is running in the background? I searched SO and find when using didReceivingRemoteNotification
, the user has to tap "view" to call the function. What if I want to make it happen automatically?
By the way, if my app is running in the bg, and it has connected to another device using NSNetService or somewhat, will the connnection stop?