I want to create a cloud messaging service in my qt android application. I use firebase api for this. But i am facing the following problem:
I want to receive notifications by using a service. In Qt in order to create a service you must set your java class to extends from QtService
. But according to Firebase api in order to receive notifications java class must extends FirebaseMessagingService
. This is very annoying because i can not create a service in Qt if i made my class inherits FirebaseMessagingService
and also i can not receive notifications if inherits QtService
.
Any idea how can i implement this?
I've already tried inner classes and interfaces but no luck.