[plugin] firebase

Post your completed addons to share with the community

Post » Wed Oct 05, 2016 6:01 pm

rexrainbow wrote:@tmntppn

I could try to add this feature, it might take some days.

Thanks a lot.
B
33
S
10
G
2
Posts: 46
Reputation: 3,063

Post » Thu Oct 06, 2016 12:19 am

Update

rex_firebase_apiV3, rex_firebase_authentication, rex_firebase, rex_firebase_curTime plugins: add initialize connection by action.
In rex_firebase_apiV3, set property "Api key" to empty string "" then call "Action:Initialize" to initialize connection later.


@tmntppn
Now you could use "Action:Initialize" after reading firebase setting back.
B
108
S
26
G
258
Posts: 4,430
Reputation: 145,179

Post » Thu Oct 06, 2016 4:45 am

rexrainbow wrote:Update

rex_firebase_apiV3, rex_firebase_authentication, rex_firebase, rex_firebase_curTime plugins: add initialize connection by action.
In rex_firebase_apiV3, set property "Api key" to empty string "" then call "Action:Initialize" to initialize connection later.

That's quick... Much thx.

rexrainbow wrote:Here is another application plugin to get server timestamp continuously.

I've tried download and installing the plugin in this link and open the sample but it says the plugin 'Current timestamp' is not installed. The plugin in the link is rex_firebase_counter, is this correct?
B
33
S
10
G
2
Posts: 46
Reputation: 3,063

Post » Thu Oct 06, 2016 6:19 am

@tmntppn

It's incorrect. I had fixed the link, or you could download here.
B
108
S
26
G
258
Posts: 4,430
Reputation: 145,179

Post » Sat Oct 08, 2016 4:07 pm

@rexrainbow

Hello, rexrainbow.

I'm not sure if this bug of your plugin, may be i should blame my code. So.. The bug with "rex_firebase_itemtable". When you play offline (without internet connection), and then restart game with interent connection, data doesn't want to save. The only one suspected culprit is my custom var "LoginSuccess"

Image

Which takes his value after successful cocoon logining

Image
B
29
S
7
G
2
Posts: 193
Reputation: 3,129

Post » Sat Oct 08, 2016 4:28 pm

@norman74

Sorry I could not get your point, do you mean that itemtable does not send data to firebase in event 404?
B
108
S
26
G
258
Posts: 4,430
Reputation: 145,179

Post » Sat Oct 08, 2016 4:55 pm

@rexrainbow

Yes, it doesn't send data after app was in offline statement
B
29
S
7
G
2
Posts: 193
Reputation: 3,129

Post » Sun Oct 09, 2016 1:00 am

@norman74

Test capx, works fine.
There are 3 saving
1. initial, online - saving to item: "0"
2. go offline - saving to item: "1" , this item won't be saved to server now because it is offline. This saving action will be pended.
3. go online - saving to item: "2", now item:"1" and item:"2" will be saved.
B
108
S
26
G
258
Posts: 4,430
Reputation: 145,179

Post » Sun Oct 09, 2016 2:56 pm

@rexrainbow

I've added a text into my project which every tick shows status of firebase connection
And it looks like firebase breaks after offline statement.
Steps:
1. Open game with internet (Text shows "connected") and close game.
2. Open game without internet (Text shows "not connected") and close game.
3. Open game with internet again (Text still shows "not connected")
Is it bug of firebase or not?
p.s connection detection is enabled
B
29
S
7
G
2
Posts: 193
Reputation: 3,129

Post » Tue Oct 11, 2016 2:58 am

@norman74

I can not reproduce this situation. "Condition:On connected" is still fired in step 3.
But... "Condition:On disconnected" is not fired in step2, I will try to fix it. ( "condition:Is connected" returns false in this case )
B
108
S
26
G
258
Posts: 4,430
Reputation: 145,179

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: Colludium and 1 guest