Safest way to save a game on android and ios?

What is the safest way to save a game on android and ios devices? I mean, if you use XML, it can be easily modified by the user, and my game will have in app purchases, so I need to save the purchases information on the device to make then available offline, right? What is the safest way to do this? Thanks

You could always use this to save on iOS and Android:

Secured Player Prefs