# FuseJS/Push Problem

**URL:** <https://forums.fusetools.com/t/fusejs-push-problem/2116>\
**Category:** How-to Discussions\
**Created:** [February 7, 2017, 1:55pm UTC](https://forums.fusetools.com/t/fusejs-push-problem/2116 "2017-02-07T13:55:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rolando\_Rodrigues](https://avatars.discourse-cdn.com/v4/letter/r/c6cbf5/32.png) [@Rolando\_Rodrigues](https://forums.fusetools.com/u/Rolando_Rodrigues)\
**Post date:** [February 7, 2017, 1:55pm UTC](https://forums.fusetools.com/t/fusejs-push-problem/2116/1 "2017-02-07T13:55:09Z")

</div>

Hi,  
I’m trying to implement Push Notifications. I’ve done everything like in the docs.

```auto
...
 "Packages": [
  	"Fuse",
  	"FuseJS",
    "Fuse.Scripting",
    "Fuse.PushNotifications"
  ],
  "Android": {
    "GooglePlay": {
      "SenderID": "myprojectid"
    }
  }
...

```

but if i write

```auto
var push = require("FuseJS/Push");

```

I get the following error in the monitor when i preview the app on a device:

```auto
 Error message: Uncaught require(): module not found: FuseJS/Push

```

Did i miss something?

---

<div class="post-metadata">

**Author:** ![Remi\_Pedersen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/remi_pedersen/32/432_2.png) [@Remi\_Pedersen](https://forums.fusetools.com/u/Remi_Pedersen)\
**Post date:** [February 7, 2017, 2:16pm UTC](https://forums.fusetools.com/t/fusejs-push-problem/2116/2 "2017-02-07T14:16:12Z")

</div>

If preview was already running before you made changes to the .unoproj then you should try to exit / close and restart it.

---

<div class="post-metadata">

**Author:** ![Rolando\_Rodrigues](https://avatars.discourse-cdn.com/v4/letter/r/c6cbf5/32.png) [@Rolando\_Rodrigues](https://forums.fusetools.com/u/Rolando_Rodrigues)\
**Post date:** [February 7, 2017, 2:29pm UTC](https://forums.fusetools.com/t/fusejs-push-problem/2116/3 "2017-02-07T14:29:34Z")

</div>

I closed everything i had open and deleted the preview app on the phone. It seems to work now. Thanks for the fast answer…

---

<div class="post-metadata">

**Author:** ![Remi\_Pedersen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/remi_pedersen/32/432_2.png) [@Remi\_Pedersen](https://forums.fusetools.com/u/Remi_Pedersen)\
**Post date:** [February 7, 2017, 2:55pm UTC](https://forums.fusetools.com/t/fusejs-push-problem/2116/4 "2017-02-07T14:55:53Z")

</div>

Great! 🙂

In the not-too-distant future we’ll be providing functionality that’ll let you know when you’ve made a change that won’t get automatically picked up by preview.

However, the rule of thumb is that

- Adding / removing packages
- Changing compiled code (Uno or ObjC / Java)

will require preview to be rebuilt / restarted.

---

<div class="post-metadata">

**Author:** ![Rolando\_Rodrigues](https://avatars.discourse-cdn.com/v4/letter/r/c6cbf5/32.png) [@Rolando\_Rodrigues](https://forums.fusetools.com/u/Rolando_Rodrigues)\
**Post date:** [February 7, 2017, 2:58pm UTC](https://forums.fusetools.com/t/fusejs-push-problem/2116/5 "2017-02-07T14:58:32Z")

</div>

Ok Thanks 🙂
