[plugin] firebase

Post your completed addons to share with the community

Post » Sat Feb 20, 2016 11:15 am

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.)
B
108
S
26
G
272
Posts: 4,471
Reputation: 152,277

Post » Mon Mar 07, 2016 5:39 pm

@rexrainbow

Are Firebase ItemTable and Firebase Item Monitor work with cocoon.io (by cordova)?
B
32
S
11
G
2
Posts: 196
Reputation: 3,560

Post » Tue Mar 08, 2016 3:32 am

norman74 wrote:@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.
B
119
S
30
G
8
Posts: 214
Reputation: 13,160

Post » Tue Mar 08, 2016 6:05 am

@gonzdevour

Report it please, i really need firebase with cocoon.io
B
32
S
11
G
2
Posts: 196
Reputation: 3,560

Post » Tue Mar 08, 2016 8:06 am

norman74 wrote:@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.
B
119
S
30
G
8
Posts: 214
Reputation: 13,160

Post » Tue Mar 08, 2016 12:57 pm

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.).
B
16
S
7
G
1
Posts: 161
Reputation: 3,131

Post » Tue Mar 08, 2016 1:12 pm

@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 "".
B
108
S
26
G
272
Posts: 4,471
Reputation: 152,277

Post » Tue Mar 08, 2016 2:50 pm

rexrainbow wrote:@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?
B
16
S
7
G
1
Posts: 161
Reputation: 3,131

Post » Tue Mar 08, 2016 3:13 pm

@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.
B
108
S
26
G
272
Posts: 4,471
Reputation: 152,277

Post » Tue Mar 08, 2016 4:36 pm

Update

rex_firebase_authentication, rex_parse_authentication plugin. Add "Condition:Is login", which will return true if logging now.
B
108
S
26
G
272
Posts: 4,471
Reputation: 152,277

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 4 guests