Sign In Register

How can we help you today?

Start a new topic
Answered

iOS and Android API mismatch

I'm porting an iOS app the uses the native IOS SDK to android using the native android SDK. The android API seems be be less complete. I'm looking for the following functions from iOS API:

GS.isAuthenticated()

GS.reset()

GS.currentPlayerId()


Are they implemented? if not what are my options


to replace reset()

can I use GSAndroidPlatform.gs().setAuthToken(null) ?


It's really strange that the APIs don't match.


Best Answer

Hi Christian,

We added the isAuthenticated and also reset methods to the SDK. Now you do not need to call setAuthToken and setPlayerId, just update the version of the Android SDK (0.2.1) into your build.gradle file, please. Let me know if you need something else.


Thanks,

Giuseppe


Thank you for your quick update, that's really appreciated.

Answer

Hi Christian,

We added the isAuthenticated and also reset methods to the SDK. Now you do not need to call setAuthToken and setPlayerId, just update the version of the Android SDK (0.2.1) into your build.gradle file, please. Let me know if you need something else.


Thanks,

Giuseppe

Great I'll do that.

Thanks Giuseppe

Hello Christian,


1) you need to set a proper boolean variable when you get an authenticated response.


2) yes, partially correct, these are the right steps:

GSAndroidPlatform.gs().setAuthToken("0");

GSAndroidPlatform.gs().setPlayerId("");

At the moment there is no reset method like the iOS SDK, but we can add it very quickly to the Android one.


3) GSAndroidPlatform.gs().getPlayerId()


Giuseppe 


Login to post a comment