I would like to handle two cases:
- The SDK is not initialised properly for some reason, for example adblock, other tools that disables scripts, etc.
- The SDK is not working properly because the network is blocked and it cannot sent a request for a long period of time
Does the SDK provides a way that we could handle those problems mentioned above? I mean for example I would like to collect the data and push some logs to my backend if the SDK is not initialised properly but I'm afraid I don't have some explicit to do that. Correct me if I'm wrong, but I've tried to use isSdkReady method. Not sure if this is a correct approach but anyway I had to force my linter to use it because it's a private static method. Or maybe there's better way? Unfortunately I don't see anything in the exposed methods that could help.
The second thing is with the network. I don't see any network event handlers that could trigger if the SDK cannot connect to GameAnalytics API.
Any help with this would be much appreciate it :) Thanks in advance.
I would like to handle two cases:
Does the SDK provides a way that we could handle those problems mentioned above? I mean for example I would like to collect the data and push some logs to my backend if the SDK is not initialised properly but I'm afraid I don't have some explicit to do that. Correct me if I'm wrong, but I've tried to use
isSdkReadymethod. Not sure if this is a correct approach but anyway I had to force my linter to use it because it's a private static method. Or maybe there's better way? Unfortunately I don't see anything in the exposed methods that could help.The second thing is with the network. I don't see any network event handlers that could trigger if the SDK cannot connect to GameAnalytics API.
Any help with this would be much appreciate it :) Thanks in advance.