Comments (11)
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.
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.
So is it mean that QtFirebase doesn't support Qt5.14.x?
from qtfirebase.
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.
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.
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.
I can't confirm it works but other users have left some hints. See: Larpon/QtFirebaseExample#26
Something about libs.xml
from qtfirebase.
@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.
@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.
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.
See my PR on Larpon/QtFirebaseExample#29
from qtfirebase.
Related Issues (20)
- Using Qtfirebase HOT 13
- Cloud Storage HOT 5
- Getting Value from Firebase Real-time Database (Qt c++) HOT 1
- Support for Android AAB (Armv7 & Armv8) HOT 6
- Compatible Firebase SDK versions HOT 1
- Not able to Create QtFirebase object in my main.qml for Android. HOT 2
- Links markdown broken HOT 1
- Bundle of improvements HOT 3
- Provide a CLI to be run qmake HOT 13
- Debugging console HOT 9
- Code signing error HOT 5
- Push notifications while in foreground HOT 9
- Can't compile with QTFIREBASE_CONFIG += analytics messaging for iOS HOT 2
- Qt 6 Support ? HOT 1
- Subscribing to topic nets no result HOT 6
- Linking failed on iOS HOT 10
- Build project with CMakeLists.txt instead of .pro HOT 2
- Subscribe method isn't working on the latest firebase_cpp_sdk (10.0.0) HOT 1
- Qt create how to config my kit HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qtfirebase.