[plugin] firebase

From the Asset Store
Firebase Analytics
$2.80 USD
30% off
Firebase Analytics Web App, ( Firebase SDK version 10.0.0 )
  • ByBraiiaN

    Try update rex_firebase_apiV3 again, assume that you are using apiV3.

  • rexrainbow

    Hello. Sorry that i haven't sent you an axample about firebase bug for 3 month's. Although only i have this problem <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile"> I made example and i'll tell you how to reproduce the bug

    So, to reproduce this bug (firebase plugin returns "offline" even if i online) i used this way:

    1. Enter in game using wi-fi (Online mode). Firebase returns ONLINE https://pp.vk.me/c637825/v637825234/261 ... gUT4jI.jpg

    2. Off wi-fi and enter in game (Offline mode). And saving doesn't work. Firebase returns OFFLINE (Everything as it should to be)

    https://pp.vk.me/c637825/v637825234/261 ... VhveGY.jpg

    3. But... Now enter in game using wi-fi (Online mode). And it returns OFFLINE again. Why?

    https://pp.vk.me/c637825/v637825234/261 ... ZCPWSQ.jpg

    Btw to return (firebase online) back you should reinstall app or clear cache.

    Here is capx (r239): https://www.dropbox.com/s/tcl5z2nmiq9vv ... .capx?dl=0

    And APK (If you need): https://www.dropbox.com/s/oogacmad90a2i ... g.apk?dl=0

    Sorry for a lot of mistakes. And thanks. I very very hope you'll fix it

  • Your test capx is not simple enough. Here is my test capx, which only append "Online" or "Offline" when connected or disconnected.

    This test capx worked fine in my notebook (win7 64bit). I turn on/off network(wifi) and the "Online" or "Offline" are appended.

    Could you test with this capx again?

  • rexrainbow

    Yes, it works on PC, but not on mobile (cocoon io). I know that you can't test it, but i can. Is it possible to fix?

  • 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)

  • 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 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

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