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
T
Tech Support
said
about 6 years ago
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.
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
C
Christian Gauthier
said
about 6 years ago
Great I'll do that.
Thanks Giuseppe
Tech Support
said
about 6 years ago
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
C
Christian Gauthier
said
about 6 years ago
Thank you for your quick update, that's really appreciated.
Christian Gauthier
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.
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
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstTech Support
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
Christian Gauthier
Great I'll do that.
Thanks Giuseppe
Tech Support
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
Christian Gauthier
Thank you for your quick update, that's really appreciated.
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2487 topics