[plugin] firebase

Post your completed addons to share with the community

Post » Wed Jul 20, 2016 5:43 am

@rexrainbow

I make "Jackpot" system. When people invest items, then they get some chances for win (depends from items price). If two people (or more) invested their items, then timer starts for all players. After the timer is out, system choose one winner and he get all invested items. I don't know if i do this system correctly, but it's work fine for now
B
32
S
11
G
2
Posts: 196
Reputation: 3,560

Post » Wed Jul 20, 2016 6:35 am

@norman74

It might be dangerous, because that whole task is composed of joined user. i.e. users will interact with others.
System might be broken if users was disconnected during task running.
You need to design the logic very carefully.


Edit: I will try to make a global timer plugin of firebase.
Last edited by rexrainbow on Wed Jul 20, 2016 7:35 am, edited 2 times in total.
B
108
S
26
G
267
Posts: 4,456
Reputation: 149,747

Post » Wed Jul 20, 2016 6:36 am

The Parse website refers explicitly to migration, is it still advisable to realize new projects with Parse?

I’m really a beginner in this field and will definitetly have to train myself, so the question is, does it make sense under these circumstances?

“ The Parse hosted service will be retired on January 28, 2017. If you are planning to migrate an app, you need to begin work as soon as possible.“


Or does the end of Parse only impact the cloud version?
B
5
S
1
G
1
Posts: 15
Reputation: 851

Post » Wed Jul 20, 2016 6:41 am

@m1ch43l

Parse had released the source code, you can built private parse server in your machine or cloud service.
Here is a tutorial about how to build parser server on heroku service.
B
108
S
26
G
267
Posts: 4,456
Reputation: 149,747

Post » Wed Jul 20, 2016 7:12 am

AndreasR wrote:@rexrainbow
@METR1C

I just tested it on WebView+ and got this error message.

This operation is not supported in the environment this application is running on. "location.protocol" must be htttp or https.


Regards
Andy


Hi guys.

I was facing problem like this.
Here is my solution:
i use Cordova FB plugin from cranberrygame to login to facebook, then use this token to login using Rex's firebase plugin. It work fine on webview+, not sure about cocoon.io

Hope this can help.
B
49
S
7
G
1
Posts: 39
Reputation: 2,653

Post » Wed Jul 20, 2016 7:18 am

@mickeyboy

Nice solution!
I remembered that someone had put a request for login with acces-token.
B
108
S
26
G
267
Posts: 4,456
Reputation: 149,747

Post » Wed Jul 20, 2016 7:56 am

@rexrainbow

rexrainbow wrote:@norman74

It might be dangerous, because that whole task is composed of joined user. i.e. users will interact with others.
System might be broken if users was disconnected during task running.
You need to design the logic very carefully.


Edit: I will try to make a global timer plugin of firebase.


I know, therefore i made that each user send information, and how i understand, firebase receives information from user, who sent info the last, user with the most ping. I don't know another ways)

If one user was disconnected, then nothing will happen, but if all users.. It can bring problems
B
32
S
11
G
2
Posts: 196
Reputation: 3,560

Post » Wed Jul 20, 2016 10:32 am

rexrainbow wrote:@m1ch43l

Parse had released the source code, you can built private parse server in your machine or cloud service.
Here is a tutorial about how to build parser server on heroku service.


Thanks!

Will there be further updates for Parse?
B
5
S
1
G
1
Posts: 15
Reputation: 851

Post » Wed Jul 20, 2016 10:35 am

@m1ch43l

I don't know. Maybe be not, since Parse service will be closed.
B
108
S
26
G
267
Posts: 4,456
Reputation: 149,747

Post » Wed Jul 20, 2016 11:16 am

rexrainbow wrote:@m1ch43l

I don't know. Maybe be not, since Parse service will be closed.


Question to Parse Cloud Users: You switch to self-hosted services or to another provider services?
B
5
S
1
G
1
Posts: 15
Reputation: 851

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: Shahrukhkhan2003 and 2 guests