[plugin] firebase

From the Asset Store
Firebase Analytics Web App, ( Firebase SDK version 10.0.0 )
  • How do I check if a user is already logged in? For some reason, there is no event for detecting an active session

    Ex: Login with FB -> Close Window -> Open Window -> ?? Am I still logged in? I dont know because there is no event to check.

    What's the point of setting permissions if there are no events to use them? The only data I can access is the name of the user and email.

    Question to the saveData pluging:

    Why is there a header AND body field when saving data? In the description you wrote "value pair, to describe this slot," so header is simply used for description? But then why are there header events? I am a bit confused..could you explain?

    Great plugin ! I love it.

    ~Fireche

  • Fireche

    Use "Condition:Is login" to test if user is logged or not, and you will find login after re-open the web page. ( Capx ), call "Action:Logging out" before login to clean remembered login.

    Please update rex_firebase_authentication plugin before test it.

    Firebase and parse all can store data, but they are not similar. Parse is a SQL-like database, firebase can sync data without polling.

  • Fireche

    Yes, header is simply used for description. Headers will be read at the same time. Then player choose one slot body to load.

    It is like emails, user can see the sender, date, title of mails (headers), then open the content of one mail (body).

  • I already updated the Plugin. But "Condition:Is login" doesn't work after reloading the page. Try the following: Login with FB, close your browser, open the app again and see if you are logged in..for me the session is ended already.

    Oh and it also would be cool to get the error somehow. SaveSlot.ErrorCode

  • Fireche

    I tested by Anonymous login, seems that the login state will be preserved.

    I need to survey how to get error code/error message first, it needs some days.

  • Fireche

    I can open them.

    I assume that you might miss the common.js file. I had updated rex_firebase_itemtable again, please try again.

  • rexrainbow

    it's possible to login with the same fb account multiple times. Is there an easy way to prevent this? I could set a variable to 1 in the firebase save slot when someone logs in and set it to 0 when someone logs out and check this variable everytime someone tries to login..but is there a simpler way?

    /edit: rex_firebase_singleLogin, I didn't seet this plugin. sorry

  • rexrainbow

    Hey, I'm getting the following error:

    using firebase api v3, firebase authentication, and firebase save slot.

    Last week it was working normally (authenticating with facebook, reading/creating/saving data), but today I can't seem to login into firebase with facebook. Even tried creating new firebase project, no luck.

    I also noticed in your plugin:

    /*! license Firebase v3.0.0

    Build: 3.0.0-rc.9

    ...

    while in

    https://www.gstatic.com/firebasejs/3.0.5/firebase.js[/code:gin3ocub] it's:
    /*! @license Firebase v3.0.5
        Build: 3.0.5-rc.2
        ...
    
    Any idea? Thanks!
  • http://c2rexplugins.weebly.com/rex_fire ... login.html apparently the plugin "date" is needed to make your demo work. Just noticed it..

  • Fireche

    You might not need rex_date plugin if you does not need to parse expression:CurLoginTimestamp.

  • mvitlov

    I had not login with facebook in firebase v3.05 api, I will try it recently and post the result.

  • Fireche

    You might not need rex_date plugin if you does not need to parse expression:CurLoginTimestamp.

    but I cant even open the demo because I dont have the date plugin. Can you upload it without the parsing inside so I can open it too? :>

  • Okey, I had updated the sample capx of firebase_singleLogin.

    BTW, here is a small tool which can download/unzip/install all my plugins.

  • rexrainbow still not updated for me. It still requires Date. But I just downloaded your date plugin^^ i think its easier this way

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Fireche

    It is easier indeed. I forgot to remove date plugin from project before.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)