Normally registration is forever, until you stop the APP. However if it
fails once to send an heartbeat and Kontrol sends a registerAgain, it
would try to re-register it. The problem here is, the registration part
is done once only. So if something goes wrong and the registration
fails, we need to try to register until we are again the loop.
By changing the RegisterHTTP to RegisterHTTPForever, it'll try to
register until it's successfull. Once registered, the heartbeat will be
starting again.
Normally registration is forever, until you stop the APP. However if it fails once to send an heartbeat and Kontrol sends a
registerAgain
, it would try to re-register it. The problem here is, the registration part is done once only. So if something goes wrong and the registration fails, we need to try to register until we are again the loop.By changing the RegisterHTTP to RegisterHTTPForever, it'll try to register until it's successfull. Once registered, the heartbeat will be starting again.