I’m implementing push notification, but don’t work.
Message log: TypeError: push.on is not a function.<<
in js:
var push = require(“FuseJS/Push”);
push.on(“registrationSucceeded”, function(regID) {
console.log("Reg Succeeded: " + regID);
});
in unoproj:
“Packages”: [
“Fuse”,
“FuseJS”,
“Fuse.PushNotifications”,
],
Where are error?