how to cloud save via Google Play Service?

this is my code.



#if !PLATFORM_ANDROID
	return;
#endif

IOnlineSubsystem* oss = IOnlineSubsystem::Get();

if (oss->GetSharedCloudInterface().IsValid())
{
	//Always Fail
}

if (oss->GetUserCloudInterface().IsValid())
{
	//Always Fail
}


i couldn’t get cloud interface.
achievment, leaderboard was fine but only cloud interface fail. always.

i think OnlineSubsystem not support Google Play cloud save.

how can i integrate cloud save via Google Play Service without OnlineSubsystem?

i’m already read this

but i’m not sure to put this;“google code” to unreal engine 4 project.
it will working? or continue search in unreal engine 4 API?

OnlineSubsystem support for Google Play cloud save is not implemented for Android at this time.

Currently the GoogleApiClient.Builder in GameActivity.java does not add the .addApi(Drive.API).addScope(Drive.SCOPE_APPFOLDER). You can add this, then implement the rest of the calls in Java to call with JNI from C++.

I’m really appreciate about your answer. Thank you.

but unfortunately still i don’t know how…
i don’t have experience java code.
you already give me a lot of information but i don’t know what should i do with this.

Could you give me some more information about implement google play cloud save to Unreal Engine 4?
i’m not asking full tutorial. just little more… hints.

at least i want to know:
what is this code “.addApi(Drive.API).addScope(Drive.SCOPE_APPFOLDER)”?
and what should i do with this code?

If you look in GameActivity.java you will find this code:


		// Build Google Play API Client
		googleClient = new GoogleApiClient.Builder(this)
			.addConnectionCallbacks(this)
			.addOnConnectionFailedListener(this)
			.addApi(Games.API).addScope(Games.SCOPE_GAMES)
			.addApi(Plus.API).addScope(Plus.SCOPE_PLUS_LOGIN)
			.build();

what I meant was add the “.addApi(Drive.API).addScope(Drive.SCOPE_APPFOLDER)” to it.

Then, you’ll need to add the necessary Java code like in the example on the page you referenced and add JNI code to call from C++ to Java to use it.

I’m like the gamedna cheerleader - but very soon this is coming out - Realtime Database for all platforms - Firebase - Marketplace - Unreal Engine Forums firebase will let you get/set data to ze cloud

Thank you.
i’m very grateful.

i’ll post my progress soon.

thank you all !

Cloud Save Game plugin should be available soon :wink: