javascript - Phonegap plugin:retrive user profile, email and gmail - Stack Overflow

i am new in Phonegap development. In my current project, i want to get user profile name, gmail and ema

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.

Share Improve this question asked Dec 28, 2014 at 10:01 user3384985user3384985 3,0176 gold badges30 silver badges46 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 6

I 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条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信