adamhartford / SwiftR

Swift client for SignalR (iOS and Mac)
MIT License
174 stars 74 forks source link

Where to put signalR code in my project #105

Open krishnameena opened 6 years ago

krishnameena commented 6 years ago

Hi, I have multiple View Controllers in my project, now I want to integrate signalR in my project to receive events and on basis of a particular event I need to call function of a particular view controller so now my doubt is that in which view controller should I place the code for signalR so that I can receive all the events I want and take appropriate action on basis of event.

Narayanan-Gingerbox commented 6 years ago

Hi @krishnameena I think you can prefer appDelegate. But i have a question for you. Were you able to perform send and receive messages when the app is in background

krishnameena commented 6 years ago

Hi,

Thanks for the information. No I'm not able to perform send and receive messages when app is in background and this is the biggest challenge I'm facing right now because I don't want to go for push notifications. Please let me know if you can suggest me some solution for the same.