GithubHelp home page GithubHelp logo

Comments (11)

Larpon avatar Larpon commented on July 28, 2024 1

Thanks for reporting it!
I haven't noticed it was deprecated. It's even discouraged to use asprintf.
I'll see if I can get some time to use a TextStream based version. All it does is using string versions of pointer addresses to give the event callbacks a way to identify where a firebase event is coming from - as these need to be unique.

from qtfirebase.

Larpon avatar Larpon commented on July 28, 2024 1

It works with 5.14.x but you'll need to make the changes yourself for now (hence 5.14.x is not supported officially). If I push the changes to master now it will break for other users using LTS versions of Qt etc. 🙂 besides that I'm busy with other projects so until I have time - you'll have to replace all sprintf calls, and make the necessary changes in Android Manifest.

Pull Requests are very welcome! Especially for the sprintf fix - because that will hopefully not break anything 🙂

from qtfirebase.

shujaatak avatar shujaatak commented on July 28, 2024

So is it mean that QtFirebase doesn't support Qt5.14.x?

from qtfirebase.

Larpon avatar Larpon commented on July 28, 2024

Right now, yes. I'm tied up with other projects. But there's also breaking changes in the Android Manifest file for 5.14.x ...

from qtfirebase.

shujaatak avatar shujaatak commented on July 28, 2024

I need to use the latest NDK version (r21) and it is supported by only Qt5.14.2, so I am a bit lost how I would use QtFirebase as you say it doesn't support Qt5.14.x.

from qtfirebase.

shujaatak avatar shujaatak commented on July 28, 2024

I am so sorry to bother you again. Can you please mention what changes in Android Manifest would be required?

By the way I have got no errors while building QtFirebaseExample with Qt5.14.2 and Firebase Version 6.14.0 but the running app doesn't show anything it just show white blank window.

If the changes are small enough then committing those changes to a separate branch would be so much appreciable.

Once I get started, I would definitely post Pull Requests but right now I am just stuck in the first step.

from qtfirebase.

Larpon avatar Larpon commented on July 28, 2024

I can't confirm it works but other users have left some hints. See: Larpon/QtFirebaseExample#26

Something about libs.xml

from qtfirebase.

davidzwa avatar davidzwa commented on July 28, 2024

@Larpon I would love to help. Where to start on the Qt 5.14.2 fix?

As you mentioned we probably have to use flags to determine Qt version and use a define in code to differentiate between the sprintf calls. Is that something you'd be finding acceptable?

from qtfirebase.

Larpon avatar Larpon commented on July 28, 2024

@davidzwa Hi and welcome! 👋
The first thing would be to replace all sprintf calls with an alternative. I'm basically only using them to generate unique id's of the different instances to be able to filter out where events should go.
Here is an example - I just need a pointer address -> QString conversion, nothing else, nothing fancy. Maybe a PointerAddressToQString(...) utility function or so.

From there on I think we can provide docs or alternative AndroidManifests versions to help people out.

But those sprintf calls will have to be replaced as a start. It should be easy, I'm just super busy ATM.

Any help would be much appreciated!

from qtfirebase.

davidzwa avatar davidzwa commented on July 28, 2024

I got your example working fine with Qt 5.14.2 (I even think without the sprintf replacements, so we can definitely leave that for a later PR). Only changes are indeed in the region of the example's platform changes for Android and nothing constructive in the QtFirebase wrapper itself.
(Didnt/couldnt test iOS.)

I did notice that I got an TLS error when testing FCM on Android. We import an Android openssl qt helper in our project. Might be handy for QtFirebaseExample as well?

from qtfirebase.

davidzwa avatar davidzwa commented on July 28, 2024

See my PR on Larpon/QtFirebaseExample#29

from qtfirebase.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.