# Cannot get expo push token notification

**URL:** <https://forum.codewithmosh.com/t/cannot-get-expo-push-token-notification/2399>\
**Category:** React Native\
**Created:** [February 2, 2021, 7:31am UTC](https://forum.codewithmosh.com/t/cannot-get-expo-push-token-notification/2399 "2021-02-02T07:31:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaminlyf](https://avatars.discourse-cdn.com/v4/letter/j/35a633/32.png) [@jaminlyf](https://forum.codewithmosh.com/u/jaminlyf)\
**Post date:** [February 2, 2021, 7:31am UTC](https://forum.codewithmosh.com/t/cannot-get-expo-push-token-notification/2399/1 "2021-02-02T07:31:04Z")

</div>

I cannot get the expo push token notification. I’ve struggled for 3 weeks now and its not even getting logged to the console. The terminal says :  
The following APIs have moved to separate packages and importing them from the “expo” package is deprecated: Notifications.  
I am not using APNS or FCM.  
I’ve applied all relevant changes but no luck.  
What’s interesting is that I am able to send a local notification (section 11-notifications) but I still cannot get the expo push notification.

---

<div class="post-metadata">

**Author:** ![dpickut](https://avatars.discourse-cdn.com/v4/letter/d/a87d85/32.png) [@dpickut](https://forum.codewithmosh.com/u/dpickut)\
**Post date:** [February 2, 2021, 3:07pm UTC](https://forum.codewithmosh.com/t/cannot-get-expo-push-token-notification/2399/2 "2021-02-02T15:07:02Z")

</div>

I think that at the time the course was created, the push notification package was part of the core expo package.  
In useNotifications.js, try changing the import statement to read:  
import \* as Notifications from “expo-notifications”;

And, of course, you need to run:  
expo install expo-notifications

To get the package installed. Here’s the documentations: [Push Notifications Setup - Expo Documentation](https://docs.expo.io/push-notifications/push-notifications-setup/)

I hope this helps.
