allow to set custom user agent string, detect iOS and Android