You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I concur...I think the plugin is broken in Android 6x. It was working previously before my phone was upgraded to 6.0 - I was able to collect the Android phone info and store but it no longer seems to work.
var deviceInfo = cordova.require("cordova/plugin/DeviceInformation");
deviceInfo.get(function(result) {
var phoneNumber = JSON.parse(result.phoneNo) ;
console.log("Working: "+phoneNumber) ;
}, function(error) {
console.log("Not able to retrieve number") ;
}
months ago it would print the phoneNumber when I was on Android 5x...in fact, my app still had the data stored...but then I ran that section of code again and now it just prints the error message.
No description provided.
The text was updated successfully, but these errors were encountered: