push notification question

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>

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 :slight_smile: