[plugin] firebase

From the Asset Store
Firebase Analytics Web App, ( Firebase SDK version 10.0.0 )
  • Update - rex_firebase_query plugin, add "Action:Order by value".

    hmott

    Since the data structure in firebase is dictionary, add the key in path will get the respond value if the key is exited.

    To search keys which has a specific value, you could use "Action:Order by value" ( sorry I had missed this action ),

    [quote:2bsr330t]create query

    order by value

    equal to -

    then a 1d dictionary will be received.

    Thanks for such a quick update!

  • Hi,

    I've got the following problem with Parse. What I want to accomplish is to fetch a random user for whom the column "ready" is set to "yes". The itemtable plugin works well, and I can fetch the current user fields no problem. However this doesn't work:

    The notifications should display the fetched user's username (itemtable.LastFetchedItemContent("username")) but only show 0. Why is that?

  • pirx

    Expression:LastFetchedItemContent is used after "Read by object ID".

    See the "Retrieve items" section to retrieve rows -

    + (itemtable) Condition:On received

    + (itemtable) Condition:For each item

    • (browser: log) (itemtable) Expression:CurItemContent
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Having some trouble querying by value. I keep getting this error:

    http://postimg.org/image/ijdesneq1

    Here's the code I'm using (see 3rd image that define variable names):

    http://postimg.org/image/rsrflnxij

    Here's the firebase data:

    http://postimg.org/image/rakdnjhxj

    Any ideas? Thanks.

  • hmott

    Update rex_firebase_query plugin, and

    Here is a sample capx, remember fill your firebase url in "BASE" constant value.

    I only could prove this order by value is worked, but I don't know why it is failed in your case, this bug should not appear imo.

  • pirx

    Expression:LastFetchedItemContent is used after "Read by object ID".

    See the "Retrieve items" section to retrieve rows -

    + (itemtable) Condition:On received

    + (itemtable) Condition:For each item

    - (browser: log) (itemtable) Expression:CurItemContent

    Thank you rexrainbow, it works great!

  • hmott

    Update rex_firebase_query plugin, and

    Here is a sample capx, remember fill your firebase url in "BASE" constant value.

    I only could prove this order by value is worked, but I don't know why it is failed in your case, this bug should not appear imo.

    I don't understand... I updated the plugin and tried the sample file you provided.

    The only thing I changed was the BASE url like you instructed. Writing to my database from your sample file works, but the query function is in error.

    Here's the code that makes the error:

    Does it work for you?

    *** Update ***

    I've been able to get it to work if searching for the key ("a" through "d" in your example). Also, adding the "Data is null" condition triggers correctly when searching for non-existing key "e", for example.

    Attached is a screenshot of what does work (when BASE url filled in: https://<appname>.firebaseio.com).

    http://postimg.org/image/4mh8nxv6r

    This is good enough for me. Even if I can't search for value, I can at least define and search for the key whether it exists or not. I can then use another query call to get the value if needed.

    Thanks again for your help.

  • hmott

    Could you paste the error message of using "order by value"? Is it the same as previous testing from your post?

  • hmott

    Could you paste the error message of using "order by value"? Is it the same as previous testing from your post?

    I've updated the post with the error and the code that creates it. Hope it helps.

  • hmott

    Try re-download rex_firebase plugin again. I am not sure why the function could not be found in your environment.

  • hmott

    Try re-download rex_firebase plugin again. I am not sure why the function could not be found in your environment.

    That did it!

    Thanks!

  • Update

    Add rex_parse_tokenauth plugin, to allow user sign-up or login by a string token, this string token could be access token of facebook or google.

    Moreover, user could bind another string token to the same account. i.e. each bind string token could be used to login.

    (This plugin needs to update the cloud code of parse.)

  • rexrainbow

    Are Firebase ItemTable and Firebase Item Monitor work with cocoon.io (by cordova)?

  • rexrainbow

    Are Firebase ItemTable and Firebase Item Monitor work with cocoon.io (by cordova)?

    No, since Firebase officially support cordova, it doesn't work on cocoon.io,

    neither Canvas+ nor the basic webview mode.

    I'd suggest that we can report this to cocoon,

    or simply use IntelXDK as an alternative.

  • gonzdevour

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

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