[plugin] firebase

Post your completed addons to share with the community

Post » Sun Jun 07, 2015 11:58 am

rexrainbow wrote:@Fireche

Yes, it works on mobile browser and .... cordova. (My team member had tested on it)


@rexrainbow What about CocoonJS?
B
12
S
3
Posts: 211
Reputation: 1,477

Post » Sun Jun 07, 2015 1:06 pm

@Fireche

Sorry, I had not tested it.
B
109
S
27
G
277
Posts: 4,482
Reputation: 154,924

Post » Sun Jun 07, 2015 1:12 pm

@rexrainbow

Can you make to only one person can enter in one account?
B
36
S
13
G
2
Posts: 200
Reputation: 3,868

Post » Sun Jun 07, 2015 1:31 pm

@norman74

What is "one account"?
B
109
S
27
G
277
Posts: 4,482
Reputation: 154,924

Post » Sun Jun 07, 2015 2:09 pm

@rexrainbow

That two people can't enter in same accoount at the same time.
B
36
S
13
G
2
Posts: 200
Reputation: 3,868

Post » Mon Jun 08, 2015 3:16 am

@norman74

There is no directly solution. One possible solution is to maintain a login status:
1. write a value after login.
2. clean this value before logged out.

This solution is not robust enough, it would be broken while player disconnected by shot down or force closing application.


In conclusion, there is no good solution if using pure parse.
Firebase could maintain a online users list, so that it could be solved with firebase. But the cost will be increasing.
B
109
S
27
G
277
Posts: 4,482
Reputation: 154,924

Post » Mon Jun 08, 2015 5:23 am

@rexrainbow

Ok, thanks.
B
36
S
13
G
2
Posts: 200
Reputation: 3,868

Post » Mon Jun 08, 2015 5:32 am

@rexrainbow

As i understand, parse more easily than firebase, but firebase have more functionality?
B
36
S
13
G
2
Posts: 200
Reputation: 3,868

Post » Mon Jun 08, 2015 6:03 am

@norman74

Parse is similar to php + mySQL, it uses AJAX to send requests and get responses.
Firebase uses websocket to maintain connects, the main idea of firebase is to save data and broadcast them to listeners.
Although they all could store data, parse is good at querying data (for reading), firebase is good at sync data i.e. server will send new data to client.
B
109
S
27
G
277
Posts: 4,482
Reputation: 154,924

Post » Mon Jun 08, 2015 6:28 am

Message: norman74 can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
rexrainbow wrote:@norman74

There is no directly solution. https://www.parse.com/questions/login-on-mobile-and-on-web-at-the-same-time One possible solution is to maintain a login status:
1. write a value after login.
2. clean this value before logged out.

This solution is not robust enough, it would be broken while player disconnected by shot down or force closing application.


In conclusion, there is no good solution if using pure parse.
Firebase could maintain a online users list, so that it could be solved with firebase. But the cost will be increasing.

@rexrainbow

Ok, but how to make " on logged out" in C2? To clean value
B
36
S
13
G
2
Posts: 200
Reputation: 3,868

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 1 guest