SmartApp triggered with virtual switch not working from mobile device

I can’t read your code, so others will have to comment on that (I use text to speech software), but If this was just happening within the last few hours a number of people have been reporting rolling system outages where they lost control of various devices. Then it came back on its own. So it could just be a platform glitch.