Hello,
onNotificationFired does not seem to work in compiled code to iOS or Android. But it works perfectly in Felgo Live.
Notification {
id: sessionNotification
notificationId: "session_notification"
message: "Token Session set to 14 hours"
timeInterval: 5
}
NotificationManager {
id: notificationManager
onNotificationFired: {
console.warn("Notification with id " + notificationId + " fired")
logoutNotificationMsg.open()
notificationManager.cancelAllNotifications()
}
}
MessageDialog {
id: logoutNotificationMsg
.
.
.
}
AppButton {
id: loginButton
text: "Login"
onClicked: {
notificationManager.scheduleNotification(sessionNotification)
}
I’ve also tried:
AppButton {
id: loginButton
text: "Login"
onClicked: {
notificationManager.schedule({
notificationId: "session_notification",
message: "Token Session set",
timeInterval: 5
})
}
In Felgo Live theMessageDialog appears and can be used. But when compiled, the notification appears for a few secs and is in the phones notification area, but the MessageDialog does not open and there is no indication that a notificationFired event has taken place.
Best,
Jake