Lets take as an example GetBoolTrue, it wont ever work, cause if its not previosly defined iOS will return a default value that u're not able to set, in bool's case false
public bool GetBoolTrue(string key) { try { return _prefs.BoolForKey(key); } catch { return true; } }
There are 3 ways to solve this and keep coherence between platforms:
Delete GetBoolTrue and set default value in android to match ios' ones
Change internal storage in iOS to strings, so value in a non-defined key will be null, that way we can control it and return ur desired default value checking for it
Lets take as an example GetBoolTrue, it wont ever work, cause if its not previosly defined iOS will return a default value that u're not able to set, in bool's case false
public bool GetBoolTrue(string key) { try { return _prefs.BoolForKey(key); } catch { return true; } }
There are 3 ways to solve this and keep coherence between platforms: