FindFriends() will not show correctly people reconnected to photon on Mobile App iOS
Options
I have addressed this issue before but it is still not working - at least with me.
When I am on my iOS device and I connect successfully to Photon - it's all fine - I am "online" for the people that call FindFriends();
When I press Home Button and of course the application goes in the background - I disconnect from photon in the code, then when the application goes back to foreground I reconnect with the same name as before disconnection. ( I use OnApplicationPause () for handling that situation). This time I am not visible as online for people that call FindFriends();
If I restart the application - it is all good again..
Any suggestions?
Regards,
Ilko
When I am on my iOS device and I connect successfully to Photon - it's all fine - I am "online" for the people that call FindFriends();
When I press Home Button and of course the application goes in the background - I disconnect from photon in the code, then when the application goes back to foreground I reconnect with the same name as before disconnection. ( I use OnApplicationPause () for handling that situation). This time I am not visible as online for people that call FindFriends();
If I restart the application - it is all good again..
Any suggestions?
Regards,
Ilko
0
Comments
-
Bump...!!0
-
We are looking into it0
-
The fix to this is:
For a quick fix please replace line 1160 in NetworkPeer.cs:
this.CustomAuthenticationValues = new AuthenticationValues();
with
this.CustomAuthenticationValues = new AuthenticationValues(){ UserId = this.PlayerName };
We will update PUN in Asset Store asap.
Thanks to Vadim!
Regards,
Ilko0