mk-5 / gdx-fireapp

libGDX Firebase API
Apache License 2.0
65 stars 21 forks source link

Feature request for roboVM ios backend #40

Closed Daniel-Donev closed 3 years ago

Daniel-Donev commented 3 years ago

Hi guys,

Are you planning to realize soon a version that supports roboVM ios backend, because ios-moe is removed from the latest libgdx version and is no longer supported?

Thanks!

mk-5 commented 3 years ago

Hi!

👍 definitively, it's a must-be. I think it will be implemented in the next release. Keep track this issue

kaloyanhlebarov commented 3 years ago

Upvote! I'm currently trying to release my game and this is the only issue I have on iOS that is stopping me. I`ll be very thankful if you can tell me roughly when do you plan to integrate that feature?

mk-5 commented 3 years ago

I'm currently working on some game, and I also will need this RoboVM back-end ;) I'm planning to get this at some point of October. I hope that works for you

mk-5 commented 3 years ago

Unfortunately, I had a little delay, because of corona situation. No health issue, but I'm waiting for a new Mac, and my shipment is delayed.

Stay tuned, it's closer and closer with each day. For sure it has high-prio for me right now

Daniel-Donev commented 3 years ago

Thank you very much!

mk-5 commented 3 years ago

Good news, the new version 3.0.1 with RoboVM backend, and libgdx 1.9.12 is available to use.

I've updated the iOS quick start as well: https://github.com/mk-5/gdx-fireapp/wiki/iOS-Guide

Daniel-Donev commented 3 years ago

Hi, it seems that there are some problems with the integration. First we had to add pl.mk5.gdx.fireapp.ios.** in robovm.xml to resolve some minor errors. Maybe you can add this to the guide.

We get this error on authentication: pl.mk5.gdx.fireapp.ios.auth.GoogleAuthProvider$GIDSignDelegate cannot be cast to org.robovm.objc.ObjCObject

We are using this code for the Auth process. On Android there is no problem, but on iOS roboVM it fails.

GdxFIRAuth.inst().google().signIn().then(new Consumer() { @Override public void accept(GdxFirebaseUser user) { game.user = user; } }).fail(new BiConsumer<String, Throwable>() { @Override public void accept(String s, Throwable throwable) { game.userSkipLogin = true; } });

Is there another way we should be authenticating for iOS as there is no available description in the WIKI for roboVM? https://github.com/mk-5/gdx-fireapp/wiki/Google-Sign-in

Thank you!

mk-5 commented 3 years ago

Hello @Daniel-Donev

About force link -> sorry, I missed this one. Indeed following is required:

  <forceLinkClasses>
    <pattern>pl.mk5.gdx.fireapp.ios.**</pattern>
  </forceLinkClasses>

will be added to the doc.

I'll test this Google signIn. No no, you are doing everything right. It looks like something went wrong with multi-os-engine -> robovm porting.

I'll check it

Daniel-Donev commented 3 years ago

Thanks! I will wait for your response.

mk-5 commented 3 years ago

@Daniel-Donev pls check the latest version 3.0.2. Should work now

Daniel-Donev commented 3 years ago

Hi, thanks it's working now. :)

mk-5 commented 3 years ago

🎆🎆🎆

the next step is to integrate more SignIn providers.