Support detect android and ios