[plugin] firebase

Post your completed addons to share with the community

Post » Thu Jun 30, 2016 6:31 am

@rexrainbow

Thanks for the reply.

I updated C2 to latest beta, and it seems to be working now same as before.
B
9
S
5
G
2
Posts: 4
Reputation: 1,789

Post » Sat Jul 02, 2016 3:14 pm

Update

rex_firebase_leaderboard, rex_parse_leaderboard
- Add "Action:Add to score" to add a value to current score
- Add parameter "Post condition" to "Action:Post score", to post score if new score is greater / less than old score.
B
108
S
26
G
267
Posts: 4,455
Reputation: 149,745

Post » Tue Jul 05, 2016 8:52 am

Hi,

I found a solution to set cors of firebase's storage - reference.

Steps:
1. Install gsutil
2.. Add cors.json file in local, for example, put in d:\cors.json
3. Type command "gsutil cors set d:\cors.json gs://exampleproject.appspot.com" in command line window. Replace exampleproject.appspot.com by your storageBucket link.

Example of cors.json, replace * by your domain of application.
[
{
"origin": ["*"],
"method": ["GET"],
"maxAgeSeconds": 3600
}
]
B
108
S
26
G
267
Posts: 4,455
Reputation: 149,745

Post » Thu Jul 07, 2016 11:01 am

@rexrainbow
Hi RexRainbow.
Thank you for you great plugins.
It very useful, but it have a small bug. Please take a look at this screenshot.

It happen often, why i'm developing my game. I don't know if it will happen when go production or not.
Thank you for your help.

Image
B
49
S
7
G
1
Posts: 39
Reputation: 2,653

Post » Thu Jul 07, 2016 12:42 pm

@mickeyboy

I did not see this kind of error message before.
Could you provide a simple test capx to reproduce this bug?
B
108
S
26
G
267
Posts: 4,455
Reputation: 149,745

Post » Fri Jul 08, 2016 8:40 pm

@rexrainbow there is a problem with the login plugin. If you have 2 tabs open and login with let's say...facebook and then switch to the other tab and login with google while the facebook login is trying to login, then you get logged in twice with google account even if you use the single-login plugin. :/
B
12
S
3
Posts: 211
Reputation: 1,477

Post » Sat Jul 09, 2016 8:13 am

@Fireche

I tested login in 2 tabs, as you said. I saw 1 tab logged with facebook, the other was google. It worked well.

Do you mean that one user can create 2 accounts by facebook and google even the email are the same?
B
108
S
26
G
267
Posts: 4,455
Reputation: 149,745

Post » Sat Jul 09, 2016 9:30 am

@rexrainbow thank you. I realised that the problem was with the SaveSlot-Plugin. But while fixing it I stumbled across another problem: SingleLogin works just fine, except when I do the following:
-open 2 tabs
-login with fb in tab 1, then while it's trying to login I go to tab 2 and login with fb --> both tabs login with facebook without problem.

Here are my events: http://prntscr.com/bqpi6l

any idea why it doesn't work properly?
B
12
S
3
Posts: 211
Reputation: 1,477

Post » Sat Jul 09, 2016 11:00 am

@Fireche

Add "Action:Logging out" (rex_firebase_authentication) under "Condition:On kicked" (rex_firebase_singleLogin) to logging out.
"Condition:On kicked" (rex_firebase_singleLogin) is only a signal to tell current user that he had been kicked.
I will add more words for this action, thanks for reply.

rex_firebase_singleLogin can also detect multiple login of parse since login with parse also could get an userID.
B
108
S
26
G
267
Posts: 4,455
Reputation: 149,745

Post » Sat Jul 09, 2016 12:06 pm

@rexrainbow

Thank you. Keep up the good work. Your plugins are hella useful :)
B
12
S
3
Posts: 211
Reputation: 1,477

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 1 guest