This is a scrapped version of a remote control flashlight using Google Cloud, which I only managed to get the web client working and not the Android app.
Checkout the working Google Firebase version here: https://github.com/lucastan96/flashlight-firebase