We can do this with the help of embedded Linux computer that is capable of connecting to wifi network (or ethernet as well), controls relays attached based on remote commands. This can be controlled by any smart devices not only just android, iOS device, android or even with desktop/laptop etc. Let me know detailed requirements.
Thanks!