Implementing Firebase Push Notifications in a Qt Mobile Application
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
00: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
Link to download Cutelyst: https://github.com/cutelyst/cutelyst
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
About the host:
Daniel Nicoletti is a Software Engineer at KDAB, a long time KDE contributor, and author of many open source projects, such as Apper, Cutelyst and ASql.
Every month, our newsletter is featuring technical blogs on Qt, C++ and 3D topics: https://www.kdab.com/development-resources/sign-up-for-our-newsletter/
About KDAB:
KDAB offers experienced software experts to help you deliver functional, high-performing, and innovative software across embedded, mobile, and desktop platforms for projects using C++, Qt, QML/Qt Quick, OpenGL, Qt 3D, and more. https://www.kdab.com/software-services
KDAB experts regularly take time out to deliver KDAB’s world class training, in-house or at open enrollment courses around the world. We are the market leaders for training in Qt, OpenGL, and C++.
Contact us to find out more at training@kdab.com or visit our website: https://www.kdab.com/software-services/scheduled-training/
We are about 90 people, located all around the world. Our Head Office is in Sweden and we have other offices in Germany, France, the UK, and the USA. https://www.kdab.com/about/contact/
33