Will the param set by SetGracePeriodForNetworkError / SetDayIntervalForServerCheck saved to disk?

Currently I’m calling SetGracePeriodForNetworkError and SetDayIntervalForServerCheck right after Activation is done, assuming those params are saved to somewhere in the disk.
Is my usage correct? or, should I call those function every time during initialization after calling SetVersionGUID?

please let me know

You need to call those function every time during initialization after calling SetVersionGUID and before activation. These are not saved to disk.

Got it. So if I call those functions BEFORE activation happens, it will saved to the disk?

If not, because, usually SetGracePeriodForNetworkError needs to set to 0 if it is activated offline unlike activated online, somehow I need to know how the activation is done in order to call the method properly. That is inconvenient.

Please let me know

Got it. So if I call those functions BEFORE activation happens, it will saved to the disk?

No, they are global variables not saved to disk.

They need to be set before calling any Activation function be it online or offline. So, it is best to call them just after setting the version guid or just before calling activation function: IsProductGenuine()

To differentiate between offline and online activation, you can use SetExtraData() and GetExtraData() functions or keep track of it locally in your settings so that you can call SetGracePeriodForNetworkError(0) in case of offline activation.

Got it. Thank you! I will do so: you can use SetExtraData() and GetExtraData() functions