Photon offline mode?

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?

Comments

  • SaifSaif
    private void Start()
        {
            PhotonNetwork.OfflineMode = true;
            PhotonNetwork.ConnectUsingSettings();
            print("Connecting...");
        }
     
        public override void OnConnectedToMaster()
        {
         
            PhotonNetwork.JoinLobby(TypedLobby.Default);
            print("Connected");
            ConnectingMenu.SetActive(false);
            MainMenu.SetActive(true);
     
        }
     
        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");
            ConnectingMenu.SetActive(true);
            MainMenu.SetActive(false);
     
        }
    

    Unfortunately using PhotonNetwork.OfflineMode = true; does not work.
Sign In or Register to comment.