Hey Miguel,
- IsActivated returns non-TA_OK
What exactly does it return -- TA_FAIL?
How can a find if the license has been activated if there is no network at the time of the first call to IsActivated?
IsActivated() doesn't require an internet connection, so you can use that.
Am I misusing the library?
I'd need to see the code you're using to know for sure. You can either post it here, or if it's a big chuck of code you can send it to me at wyatt@wyday.com and I'll take a look at it.
Related question: where is the activated-or-not status stored when the app exits?
It depends on what value you used for the "flags" parameter when calling CheckAndSavePKey(). If you call it with TA_USER then the cryptographically signed activation block is stored in "~/.local/", if you used TA_SYSTEM the signed block is stored in "/var/lib/.local/.".