Added functions for android and ios recognition