Spil SDK – User id
Spil currently does not require registration for users and so cannot link an email to a Spil user id. All users are essentially guest users and thus have an anonymous user-id. The Spil SDK automatically generates a guest id for each user.
Set a custom user id
In case your game has a way to authenticate the user, by for example using Facebook, please make sure to set the “Custom user id” with the facebook id, or your own global user id.
Once the id and provider have been set, they will be sent along with each event. The Spil SDK also still uses it’s own generated guest user id. In order to configure the Custom User ID and Provider call the following functions: