LoginSignup
1
1

More than 5 years have passed since last update.

[Titanium] UserAgentの変え方

Posted at

HTTPClient

    var xhr = Ti.Network.createHTTPClient({});
    xhr.open('POST', url);
    xhr.setRequestHeader("User-Agent", userAgent);

WebView

Android は WebView#userAgent で指定できる。
iOSはできないのでmodule使う。
https://github.com/harukazepc/TiWebViewUserAgent/tree/master/iphone

1
1
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1