sergeiten / cordova-useragent

Allows you to change your User-Agent for HTTP requests.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cordova/PhoneGap UserAgent Plugin

Plugin for Cordova 3.0+ that allows you to change your User-Agent for HTTP requests.

Adding the plugin to your project

To install the plugin, use the Cordova CLI and enter the following:
cordova plugin add https://github.com/LouisT/cordova-useragent

Platforms

Use

To set your User-Agent:
UserAgent.set(useragent)

To get your current User-Agent:
UserAgent.get(function(ua) { })

To set your User-Agent back to the default:
UserAgent.reset()

About

Allows you to change your User-Agent for HTTP requests.


Languages

Language:Java 49.3%Language:Objective-C 35.8%Language:JavaScript 14.9%