[plugin] firebase

From the Asset Store
Firebase Analytics Web App, ( Firebase SDK version 10.0.0 )
  • I could try. Now I updated a new version of rex_firebase plugin, to modify some code of connection detecting.

    Hope it will fix this issue.

  • rexrainbow

    Still can observe this bug. By the way, it affects not only in returning value (connected/not), also on saving. It won't save any data if it's not connected before you clean cache or reinstall app.

  • Here is another version of connection detecting by events.

    Connected state is at reference

    /.info/connected[/code:1njapooc], null value is disconnected, otherwise is connected.
    
    You might try this test again.
  • rexrainbow

    Result:

    1. (Wi-fi on) It prints "Online" 2 times

    • Online
    • Online

    2. (Wi-fi off) It prints "Online"

    • Online

    3,4,5 etc.. (Wi-fi ON) It prints "Online"

    -Online

    After: clean cache and wi-fi on:

    • Online
    • Online

    Seems like after offline it writes something in cache and blocks connection (i don't even have an idea what really happens)

  • Update

    rex_firebase plugin: fix bug in expression:LastData

    Previous capx also fixed, tested fine in my PC. You might try again, but... I don't think that it will work on cocoon.io.

    The behavior of connection detecting is

    • connection state is shown at private reference "/.info/connected", read value at this reference

    a. value = false (LastData = 0) : disconnected

    b. value = true (LastData = 1) : connected

    Initially, this value is false.

  • rexrainbow

    It still doesn't write "Online" after "Offline" when i turned on wi-fi after turning off. Should I write in cocoon forum? But i'm not sure they'll fix it.

  • I tested on nwjs, it worked too. It seems that "Condition:On received" does not fire when Offline --> Online , in cocoon.io.

    I could not help you if you try to post this problem in cocoon forum. This bug might come from cocoon.io , or my plugin, it is not easy to debug for cocoon.io -- it is better to provide a pure firebase project without c2 and plugin...

  • Hi,

    Leaderboard is not bringing me data sorted by score.

    it returns:

    rank/score

    0 - 540

    1 - 650

    2 - 800

    3 - 450

    What am I doing wrong?

  • frcol

    Here is a test of your data, it works fine.

    Result:

    1: C - 800
    2: A - 650
    3: B - 540
    4: D - 450[/code:39xirqup]
    
    Could you provide a very simple test capx to reproduce this issue?
  • rexrainbow

    How can I receive server time from firebase server?

    "CurrentTimestamp.Timestamp" it is my computer time. I need firebase servet time, for protecting time cheating...

  • Hi rexrainbow

    I was wondering if you could add an "Enable" option for the Firebase plugin.

    It causes black screen at my mobile game, but I don't want to remove all the code for it (maybe it will be supported by cocoon later).

    So is it possible to enable / disable to plugin?

    Action

    -> Set enabled / disabled

    Thank you!

    Regards

    Andy

  • AndreasR

    Set property "Api key" to "", then the firebase will not be initialized when app/layout started.

    User should call "Action:Initialize" before connecting to firebase server.

  • Try Construct 3

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

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

    Set property "Api key" to "", then the firebase will not be initialized when app/layout started.

    User should call "Action:Initialize" before connecting to firebase server.

    Perfect Thank you for that hint!

  • Hello, first of all sorry to express myself I use Google Translate for you speak.

    So I created a little game and I publish it on the Play Store, everything works great, except that on the phone I can not connect to the game using the Firebase plugin An error that appears.

    That by playing my game via Google Chrome, on the Windows desktop, in Preview .. I have absolutely no worries, it happens only on Android.

    Error message : "A network erroor (such as timeout or unreacheable host) has occured.

    My code :

    Why i have this error ? Thanks and have a nice day

  • rednka14

    I did not have any experience to export to mobile app (html5 on pc only), sorry I could not help you.

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