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.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support