Forums

OverviewFelgo 1 Support › Local Push notifications not working for me…

Tagged: 

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

    LeeH

    Hi..

    I am trying to use push notifications on my android device for the first time, and after looking at the docs, it seems like local notifications would be perfect. So I’m trying to create a simple static notification, but no luck for hours. This is what I have so far:

     

    import Felgo 3.0
    import QtQuick 2.0
    import Felgo 3.0
    
    App {
        NavigationStack {
            Page {
                title: qsTr("Main Page")
            }
        }
        NotificationManager {
           id: notificationManager
         }
        Notification {
           id: notifier
           notificationId: "TestNot"
           message: "Test notification..."
           timeInterval: 60
         }
         Component.onCompleted: {
             notificationManager.scheduleNotification(notifier)
         }
    
    }
    

    I have also tried the plugin example for local notifications (on the same device), and after selecting ‘schedule notification’ I get the message telling me it will occur in ‘3 seconds’, but still nothing. On my device I can receive notifications from other apps, and notifications for my app are set to normal like everything else. Help… please…. Thanks.

     

    I’m using:

    Windows 10

    Qt 5.9.2

    Android 6.0

    #17983

    LeeH

    Ok just realised I missed the part about adding dependencies to Gradle… Everything now works fine!

    Thanks!

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