[plugin] firebase

Post your completed addons to share with the community

Post » Sat Mar 12, 2016 4:32 pm

@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.

Image


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?
B
16
S
7
G
1
Posts: 167
Reputation: 3,143

Post » Sat Mar 12, 2016 5:36 pm

@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.
B
110
S
28
G
280
Posts: 4,488
Reputation: 156,568

Post » Thu Mar 17, 2016 4:35 pm

@rexrainbow

Hi, rex!

I see that parse is migrating, what will happen with our "parse games"?
B
36
S
13
G
2
Posts: 200
Reputation: 3,868

Post » Fri Mar 18, 2016 3:55 am

@norman74

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)
B
110
S
28
G
280
Posts: 4,488
Reputation: 156,568

Post » Sat Apr 09, 2016 6:51 am

@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?
B
4
S
1
G
1
Posts: 1
Reputation: 802

Post » Wed May 04, 2016 8:54 am

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.
B
110
S
28
G
280
Posts: 4,488
Reputation: 156,568

Post » Fri May 06, 2016 10:21 am

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.
B
110
S
28
G
280
Posts: 4,488
Reputation: 156,568

Post » Thu May 12, 2016 11:02 am

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?
B
17
S
2
Posts: 88
Reputation: 1,503

Post » Thu May 12, 2016 4:31 pm

@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.
B
110
S
28
G
280
Posts: 4,488
Reputation: 156,568

Post » Fri May 13, 2016 1:38 am

@hmott

Could you explain more detail about the last question? An example is better, thanks.
"...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? "
B
110
S
28
G
280
Posts: 4,488
Reputation: 156,568

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: nhandsig and 0 guests