MacAddress icon indicating copy to clipboard operation
MacAddress copied to clipboard

Not working in my nexus 5 or probably its not working

Open jhekuzai41 opened this issue 8 years ago • 0 comments

Im using phonegap developer app in mobile.

Here is my index file

<head>
    <meta charset="utf-8" />
    <meta name="format-detection" content="telephone=no" />
    <meta name="msapplication-tap-highlight" content="no" />
    <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
    <title>Mac Address Example</title>
    <script type="text/javascript" src="cordova.js"></script>
    <script type="text/javascript" src="js/index.js"></script>
    <script type="text/javascript">
    function getMac()
    {
        alert('test');
        window.MacAddress.getMacAddress(

            function(macAddress){alert(macAddress);},function(fail) {alert(fail);}
        );
    }
    </script>
</head>
<body>
    <button onclick="getMac()">Get Macs Address</button>
</body>

alert('test') is displayed while mac address is not.

i followed this tutorial https://www.npmjs.com/package/com-badrit-macaddress

Please help. Thank you

jhekuzai41 avatar Sep 04 '16 04:09 jhekuzai41