Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo Plugins Support › onNotificationFired

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #23025

    Jake

    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

    #23036

    Alex
    Felgo Team

    Hi Jake,

    could you send us a minimal example project that reproduced your described behavior, to support@felgo.com

    Please include info about the devices and iOS/Android versions you use for testing. Since the Felgo Live Client itself is just a Felgo application, there should be no difference if the plugin is correctly integrated into your project, and should work as expected.

    Best,
    Alex

Viewing 2 posts - 1 through 2 (of 2 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded