I have been having a weird problem with the SDK, both on Android and iOs.
The problem is as goes: after using the sdk and going through transitions to the foreground/background sometimes the app I implemented received a message through the sdk, but was unable to decode the data.
Until that point all is ok, it just fails and we are able to track that. However sometimes, after being unable to decode the payload once, all further messages received produce a decoding error.
My solution on Android was to re-instantiate the client and it solved the issue there.
However on iOs, where the sdk seems more reliable(which means its harder to reproduce the bug) I couldn't find a way to force killing the client to re-instantiate it.
Just calling stop and then making the pointer to it null would be enough?
How do I force restart the client on iOs?
I couldn't find in the best practices a way to restart the client.