Is there a way to use Photon library in offline mode? I am trying to access two android devices that are connected to a single hotspot without internet. Is there a way to achieve the communication?
I am using PhotonNetwork.OfflineMode = true
as given on their docs, but it does not work.
void Start()
{
PhotonNetwork.OfflineMode = true;
PhotonNetwork.ConnectUsingSettings();
print("Connecting...");
}
public override void OnConnectedToMaster()
{
PhotonNetwork.JoinLobby(TypedLobby.Default);
print("Connected");
}
public override void OnJoinedLobby()
{
print("On Joined Lobby");
}
public override void OnJoinedRoom()
{
Debug.Log("Player has joined");
}
public override void OnDisconnected(DisconnectCause cause)
{
print("DisconnectFrom Photon");
}