i am new in Phonegap
development. In my current project, i want to get user profile name, gmail and email address. I know how to retrieve these information in native Android
. By using which plugin, i can get these information in Phonegap
. Thanks in advance.
i am new in Phonegap
development. In my current project, i want to get user profile name, gmail and email address. I know how to retrieve these information in native Android
. By using which plugin, i can get these information in Phonegap
. Thanks in advance.
1 Answer
Reset to default 6I think this plugin will full fill your needs (https://github./vliesaputra/DeviceInformationPlugin). It will give the following data
1.Your unique Device ID
2.Phone Number (if it is stored in your SIM card)
3.Country ISO of your phone network provider
4.Name of your network provider
5.Your SIM Card Serial number
6.Country ISO of your SIM card 7.Name of your SIM card mobile operator
8.E-mail/Phone number used by apps listed in your Settings > Accounts & Sync list
Here is sample code
var deviceInfo = cordova.require("cordova/plugin/DeviceInformation");
deviceInfo.get(function(result) {
//fetch the device data
console.log("result = " + result);
}, function() {
console.log("error");
});
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745227119a4617514.html
评论列表(0条)