hi guys
i get problem in local notification .I do not receive any notice from closed app state
i use
fuselibls 1.13.0
uno 1.12.3
<App>
<JavaScript>
var LocalNotify = require("FuseJS/LocalNotifications");
var Observable = require("FuseJS/Observable");
var resultSendNow = Observable("");
var resultOnReceivedMessage = Observable("");
LocalNotify.on("receivedMessage", function(payload) {
resultOnReceivedMessage.value = "Received Local Notification: " + payload;
console.log("Received Local Notification: " + payload);
});
function sendLater() {
LocalNotify.later(5, "Finally!", "4 seconds is a long time", "hmm?", true);
}
function sendNow() {
resultSendNow.value = "sendNow Called";
LocalNotify.now("Boom!", "Just like that", "payload", true);
}
module.exports = {
sendNow: sendNow,
sendLater: sendLater,
resultSendNow: resultSendNow,
resultOnReceivedMessage: resultOnReceivedMessage,
};
</JavaScript>
<DockPanel>
<TopFrameBackground DockPanel.Dock="Top" />
<ScrollView>
<StackPanel>
<Button Clicked="{sendNow}" Text="Send notification now" Height="60"/>
<Button Clicked="{sendLater}" Text="Send notification in 4 seconds" Height="60"/>
<Text Value="{resultSendNow}" />
<Text Value=" r= {resultOnReceivedMessage}" />
</StackPanel>
</ScrollView>
<BottomBarBackground DockPanel.Dock="Bottom" />
</DockPanel>
</App>