# Get Phone Number of real device

**URL:** <https://forum.ionicframework.com/t/get-phone-number-of-real-device/99930>\
**Category:** Ionic Native\
**Created:** [July 28, 2017, 8:25am UTC](https://forum.ionicframework.com/t/get-phone-number-of-real-device/99930 "2017-07-28T08:25:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![RobinBo](https://avatars.discourse-cdn.com/v4/letter/r/91b2a8/32.png) [@RobinBo](https://forum.ionicframework.com/u/RobinBo)\
**Post date:** [July 28, 2017, 8:25am UTC](https://forum.ionicframework.com/t/get-phone-number-of-real-device/99930/1 "2017-07-28T08:25:23Z")

</div>

Hey guys. I need some help/ I need take phoneNumber of device . Iam using cordova-plugin-sim. Heres my code  
this.sim.getSimInfo().then(  
(info) =\> browser.on(“loadstop”)  
.subscribe(  
() =\> {  
console.log(info.phoneNumber);  
alert(info.phoneNumber+’ '+info.cards[0].phoneNumber);  
},  
err =\> {  
console.log("InAppBrowser loadstart Event Error: " + err);  
}),  
(err) =\> console.log('Unable to get sim info: ', err)  
);  
But i had a problem/ In my emulator everything work great? but on my real device i had undefind when i try outpu phoneNumber? other parameters work great. Where is problem&? I ask all permissions on the start of app  
this.sim.hasReadPermission().then(  
(info) =\> console.log('Has permission: ', info)  
);

```
    this.sim.requestReadPermission().then(
        () => console.log('Permission granted'),
        () => console.log('Permission denied')
    );
```

---

<div class="post-metadata">

**Author:** ![hungdung](https://avatars.discourse-cdn.com/v4/letter/h/2acd7d/32.png) [@hungdung](https://forum.ionicframework.com/u/hungdung)\
**Post date:** [December 6, 2017, 4:36am UTC](https://forum.ionicframework.com/t/get-phone-number-of-real-device/99930/2 "2017-12-06T04:36:02Z")

</div>

Hi RobinBo.  
I aslo have the problem like this.  
have you resolved it yet?  
can you show me?  
thanks

---

<div class="post-metadata">

**Author:** ![Clenton](https://avatars.discourse-cdn.com/v4/letter/c/ea666f/32.png) [@Clenton](https://forum.ionicframework.com/u/Clenton)\
**Post date:** [July 24, 2018, 1:21pm UTC](https://forum.ionicframework.com/t/get-phone-number-of-real-device/99930/3 "2018-07-24T13:21:51Z")

</div>

Am also want to get the mobile number but cant able to get it… Have you found any solutions for this.

---

<div class="post-metadata">

**Author:** ![derman10](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/derman10/32/123022_2.png) [@derman10](https://forum.ionicframework.com/u/derman10)\
**Post date:** [May 28, 2019, 11:32pm UTC](https://forum.ionicframework.com/t/get-phone-number-of-real-device/99930/4 "2019-05-28T23:32:50Z")

</div>

same problem here. Phone number return empty string.

Any suggestion?
