Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Can we add google firebase api to Gideros by using C++ SDK — Gideros Forum

Can we add google firebase api to Gideros by using C++ SDK

edited December 2016 in General questions
Firebase by google brings us many features likes: Realtime Database, Remote Config ..
(Detail here: https://firebase.google.com/features/)

Now firebase supports C++ API and I think we can add this to Gideros easier?
https://firebase.google.com/docs/cpp/setup

Thanks!

Likes: simwhi

Coming soon
+1 -1 (+1 / -0 )Share on Facebook

Comments

  • SinisterSoftSinisterSoft Maintainer
    Accepted Answer
    Might be useful, maybe it could be added as a plugin?
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
    +1 -1 (+2 / -0 )Share on Facebook
  • hgy29hgy29 Maintainer
    Started writing a firebase plugin (first targets: analytics, crash, notifications and remote configs, for iOS and Android). Anyone interested and ready to support me ?
    +1 -1 (+5 / -0 )Share on Facebook
  • @hgy29 I'd love to know how to write a plugin. Is there any chance that you provide step by step documentation? I understand the overall concepts, but I do not understand how to implement and the tools required. For example, do you need Eclipse to create the .so files, or some other compiler/tools?

    Likes: antix

    +1 -1 (+1 / -0 )Share on Facebook
  • Ya-huh, totally would like an easy up to date tutorial on how to make a plug-in. It seems to be one of the most hotly requested things these days.
  • hgy29hgy29 Maintainer
    @simwhi, @antix,
    Writing plugins is not easy, even for me, it would takes me ages to write a tutorial for this, especially since I basically hate writing docs!

    I do have a doc on how to set up a build environment for gideros and plugins, which is the first step, unfortunately it is in French (written by one of my employees), and it doesn't explain how to actually write plugins.

    The major difficulty is that writing a plugin often requires understanding the internals of Gideros at some point, and the best way to acquire this knowledge is to dig into gideros source code, which in turn means that you no longer need a doc after all...
  • @hgy29 Thanks for the information.

    So, I need to understand the internals of Gideros to make third party plugins? I thought that it was fairly easy armed with a little knowledge. My understanding was:

    1. write a bridge between Lua <--> C/C++ <--> Android / iOS (create .so files for each CPU architecture).
    2. Write a Lua script to reference the plugin.
    3. Add the plugin to you Android studio project.
    4. Test it thoroughly.

    We would really appreciate it If you could share this document as we can translate it into English. We will of course share this back to the community.

    Many thanks.
    Simon

    Likes: pie

    +1 -1 (+1 / -0 )Share on Facebook
  • hgy29hgy29 Maintainer
    Simon, here it is, I hope it will help you getting started. I ought to translate it myself but didn't found the time yet.

    The difficult part when writing a plugin is managing events for async calls, but I suppose you can learn from other plugins too.

    I wish you succeed, we really need more people maintaining gideros, both core and plugins.
    docx
    docx
    Giderose_TUTO_FR001.docx
    46K
    +1 -1 (+3 / -0 )Share on Facebook
  • So it's hard to create a plugin that you say pass a table of data, and then receive a table of data as the output?
  • hgy29hgy29 Maintainer
    No, that kind of synchronous call is quite easy, what is not is queuing and processing events, I mean asynchronous work. Other things that require some knowledge of gideros internals is passing gideros objects (Sprite, Texture, or whatever) to a plugin.

    Likes: antix

    +1 -1 (+1 / -0 )Share on Facebook
  • @hgy29

    That's great! Many thanks.

    I'm interested in asynchronous plugins such as text to speech and ad providers etc.

    I'll post the English version here when it's done.
  • @hgy29 If you complete one target (for example analytics) and can make a basic list how to do it ( C++ code, native code, ...). Then we can follow and help you!

    Likes: simwhi

    Coming soon
    +1 -1 (+1 / -0 )Share on Facebook
  • @hgy29 ahh okay. I would like to see a tutorial on the "easy" plug in.

    Likes: simwhi

    +1 -1 (+1 / -0 )Share on Facebook
  • hgy29hgy29 Maintainer
    edited January 2017
    @antix, the document I posted earlier may be a good start.

    Back to Firebase, I managed to get analytics working on iOS, and I have the code for Android too (untested). I'll post my sources here this afternoon, and go on with notifications (which is why I do it at first).

    So far the most time consuming part is getting started: integrating Firebase SDK in android and iOS exports with a script so that it doesn't require manual work, and writing a skeleton for the plugin.
    +1 -1 (+2 / -0 )Share on Facebook
  • hgy29hgy29 Maintainer
    Here is the current version of the plugin: Support for crash reporting and analytics, both for iOS (tested) and Android (not tested).
    zip
    zip
    firebase.zip
    320K
    +1 -1 (+1 / -0 )Share on Facebook
  • hgy29hgy29 Maintainer
    edited February 2017
    I've finally finished my firebase plugin for iOS and Android. It supports crash reporting, analytics, remote configs and notifications. However I spent so much time on it that I decided to make it paid. 5EUR for a single app licence, and 15EUR for unlimited number of apps from the same developer. PM me if interested.
    +1 -1 (+5 / -0 )Share on Facebook
  • More than interested! :)
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • Very reasonable price!
    @hgy29 Add Realtime database please :p

    Likes: SinisterSoft

    Coming soon
    +1 -1 (+1 / -0 )Share on Facebook
  • @hgy29, so it begins! We need a marketplace for paid plugins, both to make existing plugs more visible and to let people know of this alternative Gideros revenue stream.

    Likes: SinisterSoft

    My Gideros games: www.totebo.com
    +1 -1 (+1 / -0 )Share on Facebook
  • The next version of gideros has a button to locate a special 'user plugins' folder for bought plugins.

    Likes: totebo

    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
    +1 -1 (+1 / -0 )Share on Facebook
  • Nice one. But first they need to know where to buy them!
    My Gideros games: www.totebo.com
  • keszeghkeszegh Member
    edited February 2017
    yes, it needs to be added here (as a featured listing, i think a code by any main contributor to the core gideros code should have a place at the featured list automatically):
    http://giderosmobile.com/tools
    and again some spam needs to be removed from there (see Latest tools at the bottom)

    Likes: SinisterSoft

    +1 -1 (+1 / -0 )Share on Facebook
  • Me too!
    Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!).
    https://deluxepixel.com
  • I would suggest that Widget Candy and possibly Particle Candy links be removed since the creators offer pretty much refuse to reply to support requests regarding bugs (which exist in at least Widget Candy) and feature requests.

    Likes: SinisterSoft

    +1 -1 (+1 / -0 )Share on Facebook
Sign In or Register to comment.