Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Firebase As A Service
Qt 6.11 is out! See what's new in the release blog

Firebase As A Service

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
9 Posts 2 Posters 1.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • NickVN Offline
    NickVN Offline
    NickV
    wrote on last edited by
    #1

    Hi,
    I want to use firebase as a service. To create a service in Qt my java class must extends QtService. But in order to handle firebase notifications my java class must extends FirebaseMessagingService. How can i use both ? I know that multiple inheritance not supported in java. Any idea? I must create a service in order to handle background notifications of the firebase api.

    raven-worxR 1 Reply Last reply
    0
    • NickVN NickV

      Hi,
      I want to use firebase as a service. To create a service in Qt my java class must extends QtService. But in order to handle firebase notifications my java class must extends FirebaseMessagingService. How can i use both ? I know that multiple inheritance not supported in java. Any idea? I must create a service in order to handle background notifications of the firebase api.

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by raven-worx
      #2

      @NickV said in Firebase As A Service:
      How can i use both ? I know that multiple inheritance not supported in java

      you can't, for the reason you already mentioned.
      You need to create 2 separate services.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • NickVN Offline
        NickVN Offline
        NickV
        wrote on last edited by NickV
        #3

        But in order to create a service in qt my java class must extends QtService or else no service is created
        To create service i followed this link: https://www.kdab.com/qt-android-create-android-service-using-qt/

        raven-worxR 1 Reply Last reply
        0
        • NickVN NickV

          But in order to create a service in qt my java class must extends QtService or else no service is created
          To create service i followed this link: https://www.kdab.com/qt-android-create-android-service-using-qt/

          raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by raven-worx
          #4

          @NickV
          After all it's still an Android app. So you can apply native coding principles.

          Also you can try to modify the QtService class to inherit your service of choice (keep in mind the license restrictions).
          The QtService class relies is in qtbase/src/android/java/src/org/qtproject/qt5/android/bindings and should be copied along the build process IIRC.

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          0
          • NickVN Offline
            NickVN Offline
            NickV
            wrote on last edited by
            #5

            @raven-worx said in Firebase As A Service:

            Also you can try to modify the QtService class to inherit your service of choice (keep in mind the license restrictions).

            What do you mean by saying "Keep in mind license restrictions"?
            Can i modify or not QtService class?
            Any other way in order not to modify QtService Class?

            raven-worxR 1 Reply Last reply
            0
            • NickVN NickV

              @raven-worx said in Firebase As A Service:

              Also you can try to modify the QtService class to inherit your service of choice (keep in mind the license restrictions).

              What do you mean by saying "Keep in mind license restrictions"?
              Can i modify or not QtService class?
              Any other way in order not to modify QtService Class?

              raven-worxR Offline
              raven-worxR Offline
              raven-worx
              Moderators
              wrote on last edited by
              #6

              @NickV said in Firebase As A Service:

              What do you mean by saying "Keep in mind license restrictions"?
              Can i modify or not QtService class?

              If you don't own a commercial license you are using Qt in LGPL. That means you need to make your source code public. This is already the case since you are developing an Android App (LGPLv3).

              Any other way in order not to modify QtService Class?

              If firebase requires you to use their service class and don't let you alternatively implement an interface etc. .... no.

              --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
              If you have a question please use the forum so others can benefit from the solution in the future

              1 Reply Last reply
              0
              • NickVN Offline
                NickVN Offline
                NickV
                wrote on last edited by
                #7

                Yes i know that i have to make my source code public but at this time i only make a test app to see if firebase notifications works or not. So i have to make public the code of an unpublished app?

                As about "If firebase requires you to use their service class and don't let you alternatively implement an interface etc. .... no." i've already tried interfaces and inner classes but nothing worked.

                raven-worxR 1 Reply Last reply
                0
                • NickVN NickV

                  Yes i know that i have to make my source code public but at this time i only make a test app to see if firebase notifications works or not. So i have to make public the code of an unpublished app?

                  As about "If firebase requires you to use their service class and don't let you alternatively implement an interface etc. .... no." i've already tried interfaces and inner classes but nothing worked.

                  raven-worxR Offline
                  raven-worxR Offline
                  raven-worx
                  Moderators
                  wrote on last edited by
                  #8

                  @NickV said in Firebase As A Service:

                  So i have to make public the code of an unpublished app?

                  of course not. I am talking about the published product.

                  i've already tried interfaces and inner classes but nothing worked.

                  then i don't know what else to tell you.

                  --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
                  If you have a question please use the forum so others can benefit from the solution in the future

                  1 Reply Last reply
                  0
                  • NickVN Offline
                    NickVN Offline
                    NickV
                    wrote on last edited by
                    #9

                    Ok! Thanks for your reply @raven-worx ! I will search for a solution and i will inform my topic if i found something! Thanks again!

                    1 Reply Last reply
                    0

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved