Push Notifications in Qt for iOS and Android
Masa
342

Great article!

For the Android FIREBASE SDK path you should use the $${FIREBASE_SDK} notation:

FIREBASE_SDK = <path>
INCLUDEPATH += $${FIREBASE_SDK}/include/
LIBS += -L$${FIREBASE_SDK}/libs/android/armeabi-v7a/c++/ -lmessaging -lapp -llog -lauth

Now, after adding in my main:

NotificationHandler::GetInstance()->StartMessaging();

the app crashes with these warnings:

W System.err: java.lang.NoSuchMethodError: no non-static method “Lcom/google/firebase/FirebaseOptions$Builder;.setProjectId(Ljava/lang/String;)Lcom/google/firebase/FirebaseOptions$Builder;”

W System.err: java.lang.NoSuchMethodError: no non-static method “Lcom/google/firebase/FirebaseOptions;.getProjectId()Ljava/lang/String;”

F libc : Fatal signal 6 (SIGABRT), code -6 in tid 9228 (QtThread)

Do you have suggestions?

Thank you.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.