cordova-plugin-useragent

1.0.6 • Public • Published

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()

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.6137latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.6137
1.0.40
1.0.30
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i cordova-plugin-useragent

Weekly Downloads

137

Version

1.0.6

License

MIT

Last publish

Collaborators

  • danielsogl