# 5- Storing the Push Notification Token

**URL:** <https://forum.codewithmosh.com/t/5-storing-the-push-notification-token/16139>\
**Category:** Uncategorized\
**Created:** [October 28, 2022, 8:54pm UTC](https://forum.codewithmosh.com/t/5-storing-the-push-notification-token/16139 "2022-10-28T20:54:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![b0h](https://avatars.discourse-cdn.com/v4/letter/b/5daacb/32.png) [@b0h](https://forum.codewithmosh.com/u/b0h)\
**Post date:** [October 28, 2022, 8:54pm UTC](https://forum.codewithmosh.com/t/5-storing-the-push-notification-token/16139/1 "2022-10-28T20:54:41Z")

</div>

how can i get the BODY of push token ID like this

anyone help please

 ![Screen Shot 2022-10-28 at 11.52.43 PM](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/7/7c6d0f44a3bbd43057e9da08c19044ad2a3fe272.jpeg)

---

<div class="post-metadata">

**Author:** ![b0h](https://avatars.discourse-cdn.com/v4/letter/b/5daacb/32.png) [@b0h](https://forum.codewithmosh.com/u/b0h)\
**Post date:** [October 29, 2022, 5:13pm UTC](https://forum.codewithmosh.com/t/5-storing-the-push-notification-token/16139/2 "2022-10-29T17:13:57Z")

</div>

Hello! Anyone to help. ?

---

<div class="post-metadata">

**Author:** ![b0h](https://avatars.discourse-cdn.com/v4/letter/b/5daacb/32.png) [@b0h](https://forum.codewithmosh.com/u/b0h)\
**Post date:** [October 29, 2022, 7:33pm UTC](https://forum.codewithmosh.com/t/5-storing-the-push-notification-token/16139/3 "2022-10-29T19:33:43Z")

</div>

I find the soluation and I Edit the this line to in AppNAvigator.js

` const token = await Notifications.getExpoPushTokenAsync();`  
to

` const token = (await Notifications.getExpoPushTokenAsync()).data;`

---

<div class="post-metadata">

**Author:** ![b0h](https://avatars.discourse-cdn.com/v4/letter/b/5daacb/32.png) [@b0h](https://forum.codewithmosh.com/u/b0h)\
**Post date:** [October 29, 2022, 7:34pm UTC](https://forum.codewithmosh.com/t/5-storing-the-push-notification-token/16139/4 "2022-10-29T19:34:55Z")

</div>

and import the Notifications + Permissions

`import * as Notifications from "expo-notifications";`

`import * as Permissions from "expo-permissions";`
