Adding this call after initializing gamesparks seems to fix the problem:
gs.setAuthToken(authToken)
I would still like to know: if the user switches account, do I need to tell gamesparks to sign out (and how?)... or is it enough just to sign in with another account?
Jacob Nielsen
We are building a game using the Corona Gamesparks plugin.
I built a login screen using username/password + facebook sso auth. All works great except when doing gamesparks requests - after suspending/resuming or restarting the app - I get "error":{"authentication":"NOTAUTHORIZED"}.
Do I have to manually re-authenticate when the app re-launches? I read that the auth token doesn't expire, so I thought that the plugin would handle this automatically.
Also if the user switches account, do I need to tell gamesparks to sign out (and how?)... or is it enough just to sign in with another account?
Thanks, Jacob