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 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.