I have included the oauth.js file. I initialize oauth using the following code
OAuth.initialize('public-key');
OAuth.popup('twitter', function(error, result) {
console.log(result);
result.get('/1.1/account/verify_credentials.json').done(function(data) {
console.log(data)
alert('Hello ' + data.name)
})
});
Actually it works in the browser, but not in the device.
I tried to include the following plugin in config.xml
<gap:plugin name="OAuth.io" value="com.phonegap.plugins.oauthio" version="0.1.1"/>
But I get the message "this plugin is not supported for telephony" during build creation in [https://build.phonegap.com/][1].
So, I uninstalled this plugin and created the .apk file and executed it on the device. Its getting the next error that is mentioned in the screenshot.

Please help me. Thank.
source
share