[plugin] firebase

Post your completed addons to share with the community

Post » Sun Jun 19, 2016 6:54 am

Update

Change the behavior of "Condition:On disconnected" in rex_firebase plugin -
"Condition:On disconnected" will be triggered while disconnected after connected.
B
110
S
28
G
280
Posts: 4,488
Reputation: 156,568

Post » Sun Jun 19, 2016 12:16 pm

@rexrainbow
Thank you. It working fine now, my mistakes.
B
53
S
10
G
2
Posts: 43
Reputation: 3,511

Post » Tue Jun 21, 2016 1:07 pm

@rainbowrex
Hello rex,
Is it possible to make somithing like terminal (Server side program), which will be stored on firebase server? This program would control database and it necessarily have to work always to spy what is happening on database.
B
36
S
13
G
2
Posts: 200
Reputation: 3,868

Post » Tue Jun 21, 2016 2:44 pm

@norman74

Firebase has a dashboard of realtime database already.
Firebase does not provide cloud code platform. Designer need run server logic on the other platform like... heroku, google application engine, etc. Moreover, designer also could make server logic by C2 then run at a browser like a client.
B
110
S
28
G
280
Posts: 4,488
Reputation: 156,568

Post » Thu Jun 23, 2016 1:02 pm

How do I check if a user is already logged in? For some reason, there is no event for detecting an active session :(
Ex: Login with FB -> Close Window -> Open Window -> ?? Am I still logged in? I dont know because there is no event to check.

What's the point of setting permissions if there are no events to use them? The only data I can access is the name of the user and email.


Question to the saveData pluging:
Why is there a header AND body field when saving data? In the description you wrote "value pair, to describe this slot," so header is simply used for description? But then why are there header events? I am a bit confused..could you explain?

Great plugin ! I love it.

~Fireche
B
12
S
3
Posts: 211
Reputation: 1,477

Post » Thu Jun 23, 2016 2:53 pm

@Fireche

Use "Condition:Is login" to test if user is logged or not, and you will find login after re-open the web page. ( Capx ), call "Action:Logging out" before login to clean remembered login.


Please update rex_firebase_authentication plugin before test it.



Firebase and parse all can store data, but they are not similar. Parse is a SQL-like database, firebase can sync data without polling.
B
110
S
28
G
280
Posts: 4,488
Reputation: 156,568

Post » Thu Jun 23, 2016 2:56 pm

@Fireche

Yes, header is simply used for description. Headers will be read at the same time. Then player choose one slot body to load.
It is like emails, user can see the sender, date, title of mails (headers), then open the content of one mail (body).
B
110
S
28
G
280
Posts: 4,488
Reputation: 156,568

Post » Thu Jun 23, 2016 2:59 pm

I already updated the Plugin. But "Condition:Is login" doesn't work after reloading the page. Try the following: Login with FB, close your browser, open the app again and see if you are logged in..for me the session is ended already.

Oh and it also would be cool to get the error somehow. SaveSlot.ErrorCode
B
12
S
3
Posts: 211
Reputation: 1,477

Post » Thu Jun 23, 2016 3:29 pm

@Fireche

I tested by Anonymous login, seems that the login state will be preserved.

I need to survey how to get error code/error message first, it needs some days.
B
110
S
28
G
280
Posts: 4,488
Reputation: 156,568

Post » Thu Jun 23, 2016 3:52 pm

@Fireche

I can open them.
I assume that you might miss the common.js file. I had updated rex_firebase_itemtable again, please try again.
B
110
S
28
G
280
Posts: 4,488
Reputation: 156,568

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: bangoo and 2 guests