Rpc is not being Send in Photon Fusion while On Application Focus
call in Android Device
void OnApplicationPause(bool pause) {
if (Object.HasInputAuthority) {
IsLocalPlayerFocusData = !pause;
pauseManager.AddDebug($"//////{Object.Id}....Out Of Focus...{!pause}");
Rpc_ChnageStatus(IsLocalPlayerFocusData);
}
}
[Rpc(RpcSources.InputAuthority, RpcTargets.StateAuthority)]
void Rpc_ChnageStatus(bool IsLocalPlayerFocusData) {
Debug.Log($"Rpc Running___{Object.Id}");
pauseManager.isGamePause = !IsLocalPlayerFocusData;
pauseManager.AddDebug($"////{Object.Id}....RpcRuunin ..Pause
Status{pauseManager.isGamePause}");
}