# push notification question

**URL:** <https://forums.fusetools.com/t/push-notification-question/5762>\
**Category:** General\
**Created:** [January 13, 2017, 7:55pm UTC](https://forums.fusetools.com/t/push-notification-question/5762 "2017-01-13T19:55:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tom1](https://avatars.discourse-cdn.com/v4/letter/t/b487fb/32.png) [@Tom1](https://forums.fusetools.com/u/Tom1)\
**Post date:** [January 13, 2017, 7:55pm UTC](https://forums.fusetools.com/t/push-notification-question/5762/1 "2017-01-13T19:55:27Z")

</div>

Hi,  
I did as the fuse docs says about push notification. I loaded fuse preview project in real device and desktop preview but still didn’t see any device regID on console. Not sure what I am doing wrong.

This is what I did in Main.ux. I did add Fuse.PushNotifications on my .unoproj

```
<App>
  <JavaScript>
    var push = require("FuseJS/Push");

push.on("registrationSucceeded", function(regID) {
    console.log("Reg Succeeded: " + regID);
});

    push.on("error", function(reason) {
    console.log("Reg Failed: " + reason);
});

push.on("receivedMessage", function(payload) {
    console.log("Recieved Push Notification: " + payload);
});

</JavaScript>
<Text Value="Hello from main.ux"/>
</App>
```

---

<div class="post-metadata">

**Author:** ![Baggers](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/baggers/32/665_2.png) [@Baggers](https://forums.fusetools.com/u/Baggers)\
**Post date:** [January 23, 2017, 11:16am UTC](https://forums.fusetools.com/t/push-notification-question/5762/2 "2017-01-23T11:16:54Z")

</div>

Hi there Tom,

Preview on desktop cannot receive push-notifications. On device you would still need to set up the backends as per the device specific guides.

Hope this helps 🙂
