Branching According...
 
Notifications
Clear all

Branching According to The Server Status

4 Posts
2 Users
1 Reactions
752 Views
 fau
(@fau)
Posts: 16
Eminent Member
Topic starter
 

Hi Francesco,

I am having issues with the login. To be short, I will try to explain with a list

1. The server is offline
2. I run the application
3. The status is "connecting to  server"
4. I start the server. I confirm by pinging and by browser that the server is up and running.
5. However in the "connecting to server" status does not change even though I have "Ping Intervals Seconds" set to somewhat like 20 or else.

If I start the whole procedure with like:
1. The server is up and running 
2. I run the application.
3. Login components enable after the handshake with the server.
4. I shutdown and restart the server, the application responds perfectly fine with proper failure or success messages respectively.

I guess the issue is that the CombuManager is not initialized if the server is down initially. I know this is an extreme case where you encounter a situation where the server is down and the user is trying to reach the app. But in the previous phases due to relatively frequent deployments to the server I feel that it might cause issues sometimes. Is there a way to overcome this issue?

And one more thing.. I am having issues with "Remember Credentials". In the editor I can not retrieve the previous login prefs. I guess this is an editor or build issue inside Unity. But I asked just in case I might be doing something inproperly.

Best regards
Fau 

 
Posted : 04/10/2018 5:44 pm
 fau
(@fau)
Posts: 16
Eminent Member
Topic starter
 

I wanted to write the other issue. Maybe it could be topic of it ownself but.. Let me get into the what I am after. 

The server can not be reached or the user intentionally disconnected the network I want to continue the app offline.
And on the contrary, when the network is available or the user goes online I want to synchronize data. Do you have a workaround or an advice on this issue. 

I wish you a nice night.
Cheers
Fau

 
Posted : 04/10/2018 5:54 pm
(@skaredcreations)
Posts: 805
Prominent Member Admin
 

It's currently not a bug but working as expected, that is the initialization only happens once at awake of CombuManager component and there's no retry implementation.

I'll implement a "retry" method in case the initialization process failed.

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 04/10/2018 6:22 pm
fau reacted
 fau
(@fau)
Posts: 16
Eminent Member
Topic starter
 

Thank you so much Francesco. I wish you a nice weekend. 

Cheers

 
Posted : 06/10/2018 4:20 pm
Share: