Tour Preview

Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!

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.