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

Forums

OverviewFelgo 3 Support (Qt 5) › call Notification Plugin from QML plugin if App is in background

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #24548

    Volker

    Hi,

    I have the following structure: App->qmlPlugin->coreLibrary. Core library manages websockets connection and is active even if app is in background state. If connection gets closed or something is arrived I would like to send a notification to user and try to use Notification plugin for that. Core library informs qmlPlugin (this works) and qmlPlugin fires signal that should be catched in QML. Finally QML schedules a notification.

    But when app is in background it seems to be missing event loop and signal gets received only after I put app in foreground.

    Is there any way to access Notification plugin directly from C++ (qmlPlugin) to send system notification?

    Thanks.

    #24549

    Alex
    Felgo Team

    Hi Volker,

    this sounds very much like a use case for remote notifications, since especially on mobile devices, the OS might kill you app in the background without you noticing. On mobile, you can make use of dedicated native background services for tasks that should always run in the background. I’ll pass this question to the dev team as well, but your concept might not be the go-to approach after all.

    Best,
    Alex

    #24552

    Volker

    Hi Alex,

    thanks for feedback. Do GMail, What’s up and Co the same approach to be able to notify about new messages being in the background?

     

    #24553

    Alex
    Felgo Team

    Hi,

    yes, all those apps will trigger remote notifications from their server. We offer the OneSignal plugin for remote notifications: https://felgo.com/doc/plugin-onesignal/

    There are many services for remote notifications, so you could also use a custom implementation of a different service, or we can do that as part of a professional support package, if that would be interesting for you. OneSignal would be the easiest out-of-the box solution.

    Best,
    Alex

Viewing 4 posts - 1 through 4 (of 4 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