[plugin] firebase

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

    Report it please, i really need firebase with cocoon.io

    I've posted once on cocoon's forum, and filled cocoon's developer survey several days ago;

    however, I think if there are not enough users want this feature, they won't really care.

  • Hi,

    Thanks, these plugins are great. Some suggestions concerning the Parse plugin.

    First, it would be really nice if it supported tags to identify requests.

    What I mean is a situation like:

    ItemTable -> getItems(some data)

    ItemTable -> getItems(some other data)

    ItemTable:OnReceived -> do something [at this point the game "doesn't know" which request came back first]

    It would be useful to be able to do it like:

    ItemTable -> getItems(some data) (TAG usernames)

    ItemTable -> getItems(some other data) (TAG addresses)

    ItemTable:OnReceived(TAG usernames) -> do something

    ItemTable:OnReceived(TAG adresses) -> do something

    Secondly, it would be great if the Auth plugin was able to check if the current user is properly logged in (in case something went wrong, the session expired etc.).

  • pirx

    Thanks for liking these plugins.

    1.

    You might have two or more item table instances, i.e. create a new one or have many item table object (type), for each kind of data reading, and each responded data will be stored in item table instance. Item table plugin is not only a data receiver, but also a data container, imo.

    UserNameTable -> getItems(some data)

    AddressTable -> getItems(some data)

    UserNameTable :OnReceived

    AddressTable :OnReceived

    2.

    Read userID by "Expression:UserID", it is not login now if this value is "".

  • pirx

    Thanks for liking these plugins.

    1.

    You might have two or more item table instances, i.e. create a new one or have many item table object (type), for each kind of data reading, and each responded data will be stored in item table instance. Item table plugin is not only a data receiver, but also a data container, imo.

    UserNameTable -> getItems(some data)

    AddressTable -> getItems(some data)

    UserNameTable :OnReceived

    AddressTable :OnReceived

    2.

    Read userID by "Expression:UserID", it is not login now if this value is "".

    1. Oh, that makes sense. The previous Parse plugin which is now deprecated implemented tags, but I actually like the idea of different instances used for different purposes.

    2. Will it "know" when the player is logged out server-side in the middle of a game? Or does it update only during login?

  • pirx

    1.

    Yes, one reason is to store data inside item table instance. The other reason is to create item table instance on demand, to serve each request in server logic. ( I had used firebase + parse to create a server before. )

    2.

    "Expression:UserID" will return "" after loggouted. Hum... I will add another condition "Is login" to test this login state more easier.

  • Update

    rex_firebase_authentication, rex_parse_authentication plugin. Add "Condition:Is login", which will return true if logging now.

  • rexrainbow Great!

    Now, one more quiestion. It's not exactly clear to me how is data stored inside the Item Table plugin. Does it completely refresh every time on "items received"?

    I'm not sure if I'm doing this right.

    For each story_title (a text object) there is an instance variable containing the objectId of its respective story (a parse object). When I click different stories and then go back and do this again, sometimes what is read from the Item Table is the data of the previous story as if it didn't update.

    Note: if I change this to on received -> for each object id -> *curitemcontent* then it only interacts with the first received data ignoring the subsequent request.

    Could you point me to the correct path for this to work correctly?

  • Try Construct 3

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

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

    Method A.

    ... -> Action:Load all queried items -> Condition:On received -> (Condition:For each item , Expression:CurItemContent) , or Expression:Index2ItemContent, or Expression:ItemsToJSON (for all items)

    This flow will read queried items back, a snapshot of these items.

    Method B.

    Action:Load by itemID -> Condition:On load by itemID -> ( Expression:LastFetchedItemID , Expression:LastFetchedItemContent )

    It is another way to read single item from parse server, a snapshot of one item. The received item will not be put into the result of Method A.

  • rexrainbow

    Hi, rex!

    I see that parse is migrating, what will happen with our "parse games"?

  • The official parse service will be closed.

    Fortunately parse had released an open source version of parse server, it could be installed at heroku (tutorial)

  • rexrainbow, when I try using the plugin rex_grid_move I get the following error.

    'GetPluginSettings' global, but it is not a function

    Im trying to look at the Big Map Capx but since I keep getting the error above, it wont open the file. Any chance you could fix the plugin?

  • Update

    Move all firebase.js file into a new plugin - rex_firebase_api. i.e. add rex_firebase_api plugin into project for all my firebase application plugins. It is similar with rex_parse_initialize plugin for all my parse application plugins.

  • Update

    rex_firebase plugin: add property "Connection detection" and "Condition:On connected" , "Condition:On disconnected" to detect client's connection status

    Add plugin rex_wilddog_api for Wild dog service, which is a firebase-like service for China users.

    The api of wild dog is compatible with firebase, so that my plugins of firebase could be reused in wild dog service.

  • Hi Rex, I'm having trouble with the firebase query function.

    Here is the setup [plugin used]:

    (action) [Query] 0. Create a new query for ref X

    (action) [Query] 1. Order current query by Key

    (action) [Firebase] Add received callback: "Tag" once for query [Query] (child added)

    Here is the response [plugin used]:

    (condition) [Firebase] On received "Tag"

    (condition) [Query] LastData is null

    I get the following popup error on during app startup before the app finishes loading:

    "Assertion failure: Condition method appears to be missing, check ACE table names match script names."

    Same error caused by

    (condition) [Query] On received "Tag"

    I have the FirebaseAPI plugin installed.

    Also, I can't seem to find a way of receiving a reply from firebase if a text entry is missing. When there is data, [Firebase] On received "Tag" triggers a response, but not when it doesn't find a match. Any ideas?

  • hmott

    Sorry about that, please try to use the same condition ( LastData is null ) from rex_firebase plugin, I forgot to remove the conditions in rex_firebase_query plugin.

    Edit:

    I had removed these conditions in rex_firebase_query plugin, please also removes them from your project before updates this plugin.

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