Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The second call .auth() function does't call any of my callbacks #6

Open
valsap opened this issue Sep 24, 2019 · 12 comments
Open

The second call .auth() function does't call any of my callbacks #6

valsap opened this issue Sep 24, 2019 · 12 comments

Comments

@valsap
Copy link

valsap commented Sep 24, 2019

Hi!
Thanx for your job, artberri. I have a problem with plugin. When I do first auth, everything is good, but if after I call .signOut() function and try to call .auth() again, my callbacks in .auth() do not firing. Could you help me with that?

@erikwalle
Copy link

erikwalle commented Jul 21, 2021

This was the dealbreaker for me. You want @openforge/capacitor-game-services
Update: @openforge/capacitor-game-services is also not maintained and has fatal flaws. See the following discussion for my new approach.

@cleverocheck
Copy link

a very pernicious problem, we are waiting for a solution, but for now we will have to use another plugin

@erikwalle
Copy link

@IgnatLomkov I don't think a solution is coming here. I changed my plugin to this: https://github.com/robingenz/capacitor-firebase-authentication
What are you using now?

@cleverocheck
Copy link

@erikwalle but what does firebase have to do with it - like we have a problem with the modules on Google Play Games?

@erikwalle
Copy link

@IgnatLomkov Firebase is a federated authentication provider, and Robin Genz was nice enough to add GPS support to his plugin on request. If you know a maintained Javascript/Capacitor library that provides GPS integration directly I'd love to hear about it.

@cleverocheck
Copy link

@erikwalle I didn’t know that GPS can be used through firebase, but I think it will not be very convenient - it’s better to just give up the idea of writing games using cordova. Unfortunately, I have not found any plugin that works well with GPS directly.

@erikwalle
Copy link

It's seamless. I literally replaced the plugin and changed 2-3 lines, the login process is almost identical.
I can certainly see not starting out writing a game in Cordova, but I'm already invested in this path.

@cleverocheck
Copy link

@erikwalle the solution from https://github.com/robingenz/capacitor-firebase-authentication of course should work, but what if for example I don't want to work and store accounts in firebase - what to do then?

@erikwalle
Copy link

@IgnatLomkov I'm not using Firebase to "store accounts", I just use it to authorize the user and get a unique id. What you can't do with Firebase is get their GPS id out from behind the federated Firebase id. I switched recently and I'm in the process of migrating accounts over now. (fortunately still in beta)

@cleverocheck
Copy link

@erikwalle understandable, but this is still not what is needed to the end, some unnecessary intermediaries are still used. If you use only https://github.com/openforge/capacitor-game-services/ then nothing superfluous will be?

@erikwalle
Copy link

@IgnatLomkov Yes, that would be ideal. The bad news is, I've run this plugin live with a few hundred users, and it has fatal crash errors. I have never reproduced it but I have talked to people that have, and the experience is unacceptable for (I think) lower end devices. That's why I've arrived at the Firebase auth approach, it is much better supported in the javascript world, as a business-app use case. As you noted making games for mobile in javascript is rare, but Robin Genz's plugin is the best solution I could find. I spent many days researching this.

I should have results as to how Robin's plugin performs live in about a week, I can update this thread if you like.

@cleverocheck
Copy link

@erikwalle thank you very much for your help and for sharing your experience. Of course, using TS / JS with cordova for mobile games is a very rare area, which is why it is so confusing. Although I found a solution to the problem with GPS with your help, I still think about abandoning the idea of ​​using cordova, because there are still many points where there are no adequate ready-made solutions (Suppose I need to connect ironSource mediation to the game, and the only ready-made plugin for This is abandoned - https://github.com/charlesbodman/cordova-plugin-ironsource-ads Writing a plugin for almost every sneeze is very long and expensive). I think it's better to use the Unity Engine, there, in my experience, there will definitely not be any problems at such a basic level, I decided to try to work with cordova, since I myself developed playable ads (minigames) on web technologies, but alas, nailing nails with a microscope is not very convenient and fast, it is better to move away from the idea and take a hammer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants