Sign up for the KDAB Newsletter
Stay on top of the latest news, publications, events and more.
Go to Sign-up


Find what you need - explore our website and developer resources
24 February 2022
Firebase push notifications are added in part 2 so the Mobile App gets a message, even when the app is not open.
You can watch part 1, 'Using Cutelyst to Write a Qt REST Backend for a Qt Mobile Application,' here: https://www.youtube.com/watch?v=44p_2-gnylg&list=PL6CJYn40gN6hU3brE_XnbygSUq0TXNUaH&index=2
0:00 Intro
0:36 Review of part 1
1:19 Issues with notifications when the app is not running
2:32 Adding FirebaseAdminQt library (Server part)
5:01 Creating a Firebase Project
7:35 Creating Push Notifications
9:35 Configuring Client app
13:04 Adding Firebase C++ and FirebaseQt wrapper
16:44 Integrating Firebase with QML
19:53 Running the Application
Links:
* Link to download Cutelyst: https://github.com/cutelyst/cutelyst
* If the link above doesn't work, try this one: https://dl.google.com/firebase/sdk/cpp/firebase_cpp_sdk_5.7.0.zip
* Link to download the Google Firebase SDK (C++): https://firebase.google.com/download/cpp
* Firebase documentation: https://firebase.google.com/docs/cpp/setup?platform=android
* Blog link part 2: https://www.kdab.com/qt-allstack-ii-adding-firebase/
* Blog link part 1: https://www.kdab.com/qt-allstack-part-1-setup
You can find the code shown in this video here: https://github.com/KDAB/kdabtv/tree/master/Cutelyst
Note: delete build folder for Android code provided to work.
All videos about Cutelyst can be found here: https://www.youtube.com/playlist?list=PL6CJYn40gN6hU3brE_XnbygSUq0TXNUaH