#Friends Services don't initialize correctly

1 messages · Page 1 of 1 (latest)

misty jacinth
#

Hello !

I have a little problem with the Friends service, as you can see in my code below, I have a method that is called when I start the game to connect the player, if it's the first time I display a connection screen but if it's not I use the cached token to connect the player. That part is working properly, but after the play is connected I call the initialization of the Friends services (when the player connect manually it is called in an another script subscribed to the SignIn event) the first time I launch the game (precisely after the code recompile) everything work just fine but is I stop and restart the game I have like an error HTTP 401 Unothorized at the initialisation of the service and I can't firgure this out.

Now after use the cached token to connect the player I just get an error that says the service is not initalized ('cause when the player connect it load the lobby and it load the friends list)

Can someone help please ?

woeful karma
#

There is an UnityServices.Instance.Initialized event that you can listen for

misty jacinth
#

This can tell me if FriendsServices is initialized ? 🤨

woeful karma
#

Oh looks like that doesn't cover the Friends Initialization

misty jacinth
#

yep it's what I thought but I wasn't sure

#

it's look like the Friends service is completely apart from the others

misty jacinth
#

Hello there, I still have the same issue and I found nothing to resolve it

woeful karma
#

I would open a thread on the forums. I'm not sure if the Services team is very active on discord.

misty jacinth
#

Ok thanks