cordova-useragent icon indicating copy to clipboard operation
cordova-useragent copied to clipboard

Need a Example of this in use.

Open Merith-TK opened this issue 5 years ago • 0 comments

As the title says, examples are everything, i have no clue how to use this. at all. so far, this is what i have it uses

$ cordova plugin list
cordova-plugin-inappbrowser 3.0.0 "InAppBrowser"
cordova-plugin-whitelist 1.3.3 "Whitelist"
im.ltdev.cordova.UserAgent 0.1.0 "User-Agent"

this is the current HTML code

<!DOCTYPE html>
<html>
  <head>
    <title>InAppBrowser.addEventListener Example</title>

    <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
    <script type="text/javascript" charset="utf-8">

    // Wait for device API libraries to load
    //
    document.addEventListener("deviceready", onDeviceReady, false);

    // device APIs are available
    //
    function onDeviceReady() {
		var ref1 = UserAgent.set('Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0')
		var ref2 = window.open('https://devdocs.io', '_blank', 'location=no');
    }
    </script>
  </head>
  <body>
  </body>
</html>```

Merith-TK avatar Feb 12 '19 04:02 Merith-TK