Getting app that listens for switches to always run (Self Solved)

I know I read about this while making my app but I cant find it now. I set up google home to turn a simulated switch on via IFTTT and my app is subscribed to the switch.on then it does things on my roku via POST. works great everything is fine… if I have the app open on a phone or in the simulator. How do you get an app to subscribe/listen to events full time?

(EDIT: I reinstalled the app and it works fine now. Admin can delete this)