GPGS snapshot fails to open almost all the time

The only time gpgs_snapshot_open() opens the snapshot is the first time the game is launched after the APK is installed. After that, anytime the game is launched the snapshot never gets opened. How could this be fixed? Thanks in advance!

I’m not aware of any issues with the Google Play Game Services extension. What does your code look like?

Yeah I also think the problem is with my code.

if gpgs then
			gpgs.snapshot_open("cloud_save", true, gpgs.RESOLUTION_POLICY_LONGEST_PLAYTIME)
			if gpgs.snapshot_is_opened() then
				local data = sys.serialize(cloud_data)
				local success, error_message = gpgs.snapshot_set_data(data)
				gpgs.snapshot_commit_and_close({
			
				}) -- not sure if I can leave this empty
			end
		if gpgs then
			gpgs.snapshot_open("cloud_save", true, gpgs.RESOLUTION_POLICY_LONGEST_PLAYTIME)
			if gpgs.snapshot_is_opened() then
				local bytes, error_message = gpgs.snapshot_get_data()
				--for debugging
				print("Bytes")
				print(bytes, type(bytes))
				gpgs.snapshot_commit_and_close({
				
				}) 
			end

Have you set a callback and do you react to load events for conflict handling etc?

Also:

Do you get an error_message when setting the data?

Thanks