I’m experimenting with Push notifications for ios and the example was able to log the registrationID the first time, but has not logged it again since.
Is there a method to access the registrationId other than through push.onRegistrationSucceeded
The registrationID is needed in order to do testing with NWpusher.
Example:
MainView.ux
<App Theme="Basic">
<FuseJS.Push ux:Global="Push" />
<JavaScript>
var push = require("Push");
push.onRegistrationSucceeded = function(regID) {
console.log("Reg Succeeded: " + regID);
};
push.onRegistrationFailed = function(reason) {
console.log("Reg Failed: " + reason);
};
push.onReceivedMessage = function(payload) {
console.log("Recieved Push Notification: " + payload);
};
</JavaScript>
</App>
project.unoproj
{
"RootNamespace":"",
"Packages": [
"Fuse.PushNotifications",
"Fuse.Animations",
"Fuse.BasicTheme",
"Fuse.Themes",
"Fuse.Controls",
"Fuse.Designer",
"Fuse.Drawing",
"Fuse.Drawing.Primitives",
"Fuse.Effects",
"Fuse.Elements",
"Fuse.Entities",
"Fuse.Gestures",
"Fuse.Navigation",
"Fuse.Shapes",
"Fuse.Triggers",
"Fuse.Reactive",
"Fuse.Android",
"Fuse.Desktop",
"Fuse.Maps",
"Fuse.iOS",
"FuseCore",
"Uno.Collections",
"Uno.Geometry"
],
"Includes": [
"*"
],
}