[plugin] firebase

From the Asset Store
Firebase Analytics Web App, ( Firebase SDK version 10.0.0 )
  • rexrainbow tried using userid2id.

    Works like a charm except that I can't seem to actually change an ID.

    I figured I can set as many ID's as I want but as soon as I want to set an ID with a UserID that is already bound to an ID. (The one I want to change)

    It triggers "On request ID failed".

    To have an effective username system, I would need to

    • Trigger success when trying to set an ID that is bound to my UserID
    • Trigger error when trying to set an ID that is already bound to a different UserID

    (Or is it just me being too dumb to use your awesome plugin? O_o)

    Thank you for your help.

    EDIT: any way to delete a ID would resolve that issue too.

  • Update

    rex_firebase_userid2id plugin: add "Action:Remove User ID"

    randomly

    Added.

    "ID" is an alias name of UserID to help user to point out another user (get userID from this "ID" for remaining actions), since the original userID is not friendly for human. This "ID" won't be changed, imo.

    Anyway, now it could remove the registered userID to change the ID.

  • rexrainbow, where can i download "File Upload" plugin for smaple capx for rex_parse_savedata?

    Where I can find "File upload" and "file system" parse plugins?. I have been trying to find them for the las two hours . I have them installed in the right scirra folder, all of other Parse plugins appear but not these two. Help is always appreciated!. Peace and love!

  • Bitmichael

    rex_parse_fileupload had been deprecated. They could be shown by "right clicking -> show deprecated plugin" in "Insert new object" dialog.

    (Don't use parse file system plugin. )

    I recommend using

    to store files.

  • Update

    rex_firebase_userid2id plugin: add "Action:Remove User ID"

    Awesome, thanks for the fast response.

  • Another question concerning Storage plugin: just realized there isn't any way to update a file's metadata in the firebase console UI, but there is one in the API.

    Will you release a way to get and update a file's metadata in the storage plugin?

    (or to upload a file with metadata included)

    Thanks.

    Here is the link to the API:

    Firebase Metadata documentation

    Firebase Upload File with Metadata documentation (under "Add File Metadata")

  • Update

    rex_firebase_storage plugin:

    • add parameter "Metadata" in uploading actions, to upload file with metadata in JSON string. Metadata of last uploaded file is in "Expression:LastMetadata".
    • add "Action:Get metadata", to get metadata from server, trigger "Condition:On get metadata" to get the result, otherwise trigger "Condition: On get metadata error". ( sample capx )
    • add "Action:Update metadata", to update new metadata, trigger "Condition:On update metadata" , or "Condition:On update metadata error" if failed.

    Interface of Expression:LastMetadata

    • LastMetadata , to get all metadata in JSON string
    • LastMetadata( key ) , to get the key in metadata, for example LastMetadata("contentType")
    • LastMetadata( key , defaultValue ) , return defaultValue if metadata or key does not exist.

    randomly

    Here it is.

  • randomly

    Here it is.

    Wow, your updating speed is amazing, thanks so much!

  • I'm sorry to bother you again, but I got a problem when uploading from the FileChooser with metadata.

    This is my code:

    When I preview in NW.js or Chrome, it gives me this error:

    When I export to NW.js or preview in any other browser, it just never finishes uploading.

    (I know that because there is a text object that would change if it finished)

    Uploading a simple string with the same settings works perfectly.

    Any advice what I did wrong?

  • Update

    rex_firebase_storage plugin: now the default metadata is {}

    randomly

    Fixed, try it again.

  • Javascript error!

    TypeError: window.FirebaseItemListKlass is not a constructor

    localhost/Rex_Firebase_Lea ... _plugin.js, line 133 (col 18)

    This may be a bug in Construct 2 or a third party plugin or behavior - please report it to the developer following the bug report guidelines. Subsequent errors will be logged to the console.

    <img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":(" title="Sad" />

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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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?

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