Skip to content

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

Notifications You must be signed in to change notification settings

Duke74/cordova-useragent

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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/alisiikh/cordova-useragent

Platforms

  • Android
  • iOS

Use

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

To get your current User-Agent:
UserAgent.get(function(userAgent) { /* do smth */ })

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 53.5%
  • Java 34.8%
  • JavaScript 11.7%