Hi Rob,
So I changed that function to this:
function gpgsSnapshotOpenForSaveListener( event ) local jsonPath = system.pathForFile( "settings.json", system.DocumentsDirectory ) if not event.isError then event.snapshot.contents.write( json.encode(jsonPath) ) -- Write new data as a JSON string into the snapshot gpgs.snapshots.save({ snapshot = event.snapshot, description = "Save slot " .. snapshotFilename, listener = gpgsSnapshotAfterSaveListener }) end end
But the function is never triggered for some reason. The only bit of code that is executed is the print statement in the “gpgsInitListener”, none of the print statements in the gpgsLoginListener are executed :unsure: