# Get some information from phone

**URL:** <https://forums.fusetools.com/t/get-some-information-from-phone/3283>\
**Category:** How-to Discussions\
**Created:** [March 30, 2016, 9:19am UTC](https://forums.fusetools.com/t/get-some-information-from-phone/3283 "2016-03-30T09:19:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Onur\_Baran](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/onur_baran/32/127_2.png) [@Onur\_Baran](https://forums.fusetools.com/u/Onur_Baran)\
**Post date:** [March 30, 2016, 9:19am UTC](https://forums.fusetools.com/t/get-some-information-from-phone/3283/1 "2016-03-30T09:19:28Z")

</div>

Hi,

I want to access phone information. Can I get phone name info? Is it possible?

---

<div class="post-metadata">

**Author:** ![Anders\_Schau\_Knatten](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/anders_schau_knatten/32/41_2.png) [@Anders\_Schau\_Knatten](https://forums.fusetools.com/u/Anders_Schau_Knatten)\
**Post date:** [April 1, 2016, 9:52am UTC](https://forums.fusetools.com/t/get-some-information-from-phone/3283/2 "2016-04-01T09:52:40Z")

</div>

Hi Onur,

We unfortunately don’t have much of that type of information exposed in a cross platform way yet. However, you can always access the full API of your device through [foreign code](https://www.fusetools.com/learn/uno#working-with-foreign-code).

---

<div class="post-metadata">

**Author:** ![Edwin\_Reynoso](https://avatars.discourse-cdn.com/v4/letter/e/e99b99/32.png) [@Edwin\_Reynoso](https://forums.fusetools.com/u/Edwin_Reynoso)\
**Post date:** [April 1, 2016, 4:20pm UTC](https://forums.fusetools.com/t/get-some-information-from-phone/3283/3 "2016-04-01T16:20:18Z")

</div>

If this will be done in the future here’s an API suggestion: just provide an object with getter properties that return a promise:

```auto
var phone = require('FuseJS/Phone');
phone.name.then(function(name) {
  console.log(name); // where name is the name of the phone
});

```

As you can see `phone.name` returns a promise that will read the phone name and when its done reading it would return the resolved value

At least with read only properties, so no need for:

```auto
phone.getName(); // value
phone.setName(); // set name (no need we shouldn't be able to set the name right?)

```

Or perhaps methods are better:

```auto
phone.getName().then(function(name) {
  console.log(name); // where name is the name of the phone
});

```

I see no reason of having them as function calls unless there are paramters that will be passed, but since I can’t think of none perhaps its better?

Point is please return promises but just some ideas above 🙂

---

<div class="post-metadata">

**Author:** ![Anders\_Bondehagen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/anders_bondehagen/32/98_2.png) [@Anders\_Bondehagen](https://forums.fusetools.com/u/Anders_Bondehagen)\
**Post date:** [April 12, 2016, 12:01pm UTC](https://forums.fusetools.com/t/get-some-information-from-phone/3283/4 "2016-04-12T12:01:10Z")

</div>

Thanks for feedback.
