Hi,
I’m having a problem with about 10% of my customers losing their progress after performing an update. I can’t duplicate the problem but they swear they are pressing the update button in google play, and after the update installs, they lose all progress. Which makes for angry customers and bad reviews 
Does anyone have any ideas about how this could be happening?
All my saves are with JSON, and I use: local path = system.pathForFile( filename, system.DocumentsDirectory )
I also encrypt before save with:
local openssl = require “plugin.openssl”
local cipher = openssl.get_cipher (“RC2-40-CBC”)
local mime = require ( “mime” )
local deviceID = “XXXXXXX”
local contents = json.encode( table )
local encryptedData = mime.b64 ( cipher:encrypt ( contents, deviceID ) )
if _G.encryptedSaveData then
file:write( encryptedData )
else
file:write( contents )
end
I decrypt at load with:
local decryptedData = cipher:decrypt ( mime.unb64 ( contents ), deviceID )
local table = {}
if _G.encryptedSaveData then
table = json.decode( decryptedData );
else
table = json.decode( contents );
end
Any help greatly appreciated!, Greg