[plugin] firebase

From the Asset Store
Firebase Analytics Web App, ( Firebase SDK version 10.0.0 )
  • Update

    Upgrade firebase api plugin to v3.0.5.

    mvitlov

    I could not get useful error message from the image you provided, therefor I suggested that the error was came from login by facebook.

    I tried to login by facebook ( sample capx ) today with newest firebase api plugin, it worked fine.

  • rexrainbow

    Thanks for the reply.

    I updated C2 to latest beta, and it seems to be working now same as before.

  • Update

    rex_firebase_leaderboard, rex_parse_leaderboard

    • Add "Action:Add to score" to add a value to current score
    • Add parameter "Post condition" to "Action:Post score", to post score if new score is greater / less than old score.
  • Hi,

    I found a solution to set cors of firebase's storage - reference.

    Steps:

    1. Install gsutil

    2.. Add cors.json file in local, for example, put in d:\cors.json

    3. Type command "gsutil cors set d:\cors.json gs://exampleproject.appspot.com" in command line window. Replace exampleproject.appspot.com by your storageBucket link.

    Example of cors.json, replace * by your domain of application.

    [ { "origin":

    ["*"],

    "method": ["GET"],

    "maxAgeSeconds": 3600

    }

    ]

  • rexrainbow

    Hi RexRainbow.

    Thank you for you great plugins.

    It very useful, but it have a small bug. Please take a look at this screenshot.

    It happen often, why i'm developing my game. I don't know if it will happen when go production or not.

    Thank you for your help.

  • mickeyboy

    I did not see this kind of error message before.

    Could you provide a simple test capx to reproduce this bug?

  • rexrainbow there is a problem with the login plugin. If you have 2 tabs open and login with let's say...facebook and then switch to the other tab and login with google while the facebook login is trying to login, then you get logged in twice with google account even if you use the single-login plugin. :/

  • Fireche

    I tested login in 2 tabs, as you said. I saw 1 tab logged with facebook, the other was google. It worked well.

    Do you mean that one user can create 2 accounts by facebook and google even the email are the same?

  • rexrainbow thank you. I realised that the problem was with the SaveSlot-Plugin. But while fixing it I stumbled across another problem: SingleLogin works just fine, except when I do the following:

    -open 2 tabs

    -login with fb in tab 1, then while it's trying to login I go to tab 2 and login with fb --> both tabs login with facebook without problem.

    Here are my events: http://prntscr.com/bqpi6l

    any idea why it doesn't work properly?

  • Fireche

    Add "Action:Logging out" (rex_firebase_authentication) under "Condition:On kicked" (rex_firebase_singleLogin) to logging out.

    "Condition:On kicked" (rex_firebase_singleLogin) is only a signal to tell current user that he had been kicked.

    I will add more words for this action, thanks for reply.

    rex_firebase_singleLogin can also detect multiple login of parse since login with parse also could get an userID.

  • rexrainbow

    Thank you. Keep up the good work. Your plugins are hella useful

  • rexrainbow I added the Action:Logging out as you said but there is no change~ hmmm

  • Fireche

    I dig into old document of firebase -

    "Once a user authenticates to your app, Firebase manages their session, ensuring that the user is remembered across browser or application restarts. "

    And in my testing of login in one browser with two tabs, they will share the same login status -- login or logging out at the same time.

    Single-login plugin could not work perfect in this case. "Action:Logging out" under kicking condition will log out these 2 tabs. ~ hmmm

    I will try to survey more detail about login configuration.

  • Try Construct 3

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

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

    rex_firebase_authentication:

    Add "Condition:On login by other app", "Condition:On logged out by other app".

    They will be triggered while login by other tab already, or logged out by other tab. ( login status will be shared in all tabs )

    Fireche

    These signals might help you to do some remedy if player try to login in multiple tabs.

  • rexrainbow

    thank you. It somehwat works now, even tho it's still a bit buggy sometimes. The main problem is definitly that the login status is shared over all tabs.

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