Android 13 JSON not being read properly

Is anyone able to tell me how I can get round the fact that all other platforms/OS’s are able to read from Preferences JSON after JSON.parse but Android 13 requires the JSON to be stringify?

I’m guessing detect the version of Android? How can I do that>?

Interesting! Assuming you are talking about the Capacitor Preferences plugin. I instinctively am using JSON.stringify so haven’t ran into the issue you are having. The set value though is type string so it seems it is implied you would have to call stringify.

You can check the device by using Device Capacitor Plugin API | Capacitor Documentation or Platform | Ionic Documentation.