最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin1浏览0评论

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");
    }); 
发布评论

评论列表(0)

  1. 暂无评论