Giter Club home page Giter Club logo

firebase-qt's Introduction

Cutelyst - The Qt Web Framework Cutelyst logo

A Web Framework built on top of Qt, using the simple and elegant approach of Catalyst (Perl) framework.

Qt's meta object system is what powers the core of Cutelyst, it allows for introspecting controller's methods signatures and generate matching actions that can be invoked later.

BENCHMARKS

Don't trust us on being fast, check out the most comprehensive web framework benchmarks by TechEmpower http://www.techempower.com/benchmarks/

FEATURES:

  • Cross-platform
  • Stable API/ABI - v3 tagged from v3.x.x, v2 tags, v1 on v1.x.x branch (unmaintained)
  • Pluggable Engines
    • Cutelyst::Server - A cross-platform and fast server engine
      • HTTP/1.1 - Pipelining and Keep-Alive
      • HTTP/2 - Upgrade to H2, ALPN negotiation on HTTPS and direct H2C
      • FastCGI - Pipelining and Keep-Alive
  • WebSockets
  • REST with ActionREST
  • Plugin based views
    • Cutelee (A Qt implementation of Django's template engine)
    • JSON
    • Email
  • Dispatcher
    • Chained
    • Path
  • Plugins
    • Session
    • Authentication (with PBKDF2)
    • Authorization with RoleACL
    • StatusMessage
    • Validator (to validate user input)
    • CSRF protection
    • Memcached
    • UserAgent
  • Asynchronous processing (just don't use local QEventLoops or it will eventually crash)
    • Async SQL with ASql
  • Upload parser
  • JSON body as QJsonDocument when uploaded data is in JSON format
  • C++20
  • Chunked reponses (via QIODevice write API)
  • Request profiling/stats
  • Unit tested
  • QtCreator integration

DOCUMENTATION

Get started with our Tutorial or check the API.

COMMUNITY

Mailing List

REQUIREMENTS

  • CMake - for the build system (>= 3.16)
  • Qt - the core library of this framework (>= 6.2)

LICENSE

The source code is available is under the 3-Clause BSD.

firebase-qt's People

Contributors

dantti avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

firebase-qt's Issues

no matching function for call to 'Create'

Hello... I am recreating all your guide (just the part of receiving notificaitons, sending I am not realy interest in this specific app) from: https://www.youtube.com/watch?v=QsuoYGysekY but I also all rewrite to CMake, and at point of video 16:45 when I try to build to see if all works (so far of course), i see an error:

C:\Qt\Projects\Sources\MyProject\firebase-qt\src\firebaseqtapp.cpp:96: error: no matching function for call to 'Create'

C:/Qt/Projects/Sources/MyProject/firebase-qt/src/firebaseqtapp.cpp:96:14: error: no matching function for call to 'Create'
    d->app = ::firebase::App::Create(options, &*env, QNativeInterface::QAndroidApplication::context());
             ^~~~~~~~~~~~~~~~~~~~~~~
C:/Qt/Projects/Sources/MyProject/firebase_cpp_sdk/include/firebase/app.h:519:15: note: candidate function not viable: no known conversion from 'QtJniTypes::Context' to 'jobject' (aka '_jobject *') for 3rd argument
  static App* Create(const AppOptions& options, JNIEnv* jni_env,
              ^
C:/Qt/Projects/Sources/MyProject/firebase_cpp_sdk/include/firebase/app.h:482:15: note: candidate function not viable: requires 2 arguments, but 3 were provided
  static App* Create(JNIEnv* jni_env, jobject activity);
              ^
C:/Qt/Projects/Sources/MyProject/firebase_cpp_sdk/include/firebase/app.h:563:15: note: candidate function not viable: requires 4 arguments, but 3 were provided
  static App* Create(const AppOptions& options, const char* name,
              ^

in file firebaseqtapp.cpp on line 96

Accessing hidden method Landroid/os/WorkSource

Hello @dantti,
after weeks of figuring this out, I was able to run it via QMake, android SDK used 34, minSDK 28, firebase c++ sdk is current 12.2.0
So I was able to run it and receive the device token :).
but when I send the push notification from firebase console, either directly to one device or to all, I receive the following "warnings"

W mtoro.appMobile: Accessing hidden method Landroid/os/WorkSource;->add(I)Z (unsupported,test-api, reflection, allowed)
W mtoro.appMobile: Accessing hidden method Landroid/os/WorkSource;->add(ILjava/lang/String;)Z (unsupported,test-api, reflection, allowed)
W mtoro.appMobile: Accessing hidden method Landroid/os/WorkSource;->get(I)I (unsupported, reflection, allowed)
W mtoro.appMobile: Accessing hidden method Landroid/os/WorkSource;->getName(I)Ljava/lang/String; (unsupported, reflection, allowed)

and then nothing else happens... no error, no notification, no console debug:
image

  • not sure if function "messageReceived" is even triggered by firebase anymore

when we got this far, would be sad to give up...
by your experience, or at least hunch, dont you have any idea where could be the problem or what to look up as a next step?

Supported Firebase C++ SDK version, Qt version and an Example

This repository looks promising!
Can you please mention with which version of Firebase C++ SDK and Qt you have tested this repository also an example with this repository would be much helpful.
By the way, I am learning to use latest Firebase SDK with Qt5.14.2 and I found your this repository.

Kindest regards!

Not receiving message on foreground app

Hi,
I'm using FirebaseQt to get firebase push notification on my Qt Android app.
After configuring Android App and firebase console I 'm using this class:

Firebase::Firebase(QObject *parent)
    : QObject{parent}
{
#if defined(Q_OS_ANDROID) || defined(Q_OS_IOS)
    auto firebase = new FirebaseQtApp(this);

    auto messaging = new FirebaseQtMessaging(firebase);
    connect(messaging, &FirebaseQtMessaging::tokenReceived, this, &Firebase::tokenReceived, Qt::QueuedConnection);
    connect(messaging, &FirebaseQtMessaging::messageReceived, this, &Firebase::messageReceived, Qt::QueuedConnection);

    firebase->initialize();
#endif
}

void Firebase::tokenReceived(const QByteArray &token)
{
    qDebug() << "Got Firebase Messaging token" << token;
    _token = QString::fromLatin1(token);
    qDebug() << _token;
    Q_EMIT tokenChanged();
}

void Firebase::messageReceived(const QMap<QString, QString> &data)
{
    qDebug() << "Got a Push Notification when the app is running" << data;
}

I can get the token on tokenReceived and I can use that token on firebase console to send a test message to my device.

The problem is that I can see the notification while app is closed but it never call messageReceived when app is open.

Am I missing anything?

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.